src/Pure/Thy/document_build.scala
changeset 77541 9d9b30741fc4
parent 77521 5642de4d225d
child 77543 97b5547f2b17
--- a/src/Pure/Thy/document_build.scala	Mon Mar 06 15:12:37 2023 +0100
+++ b/src/Pure/Thy/document_build.scala	Mon Mar 06 15:38:50 2023 +0100
@@ -100,14 +100,14 @@
   }
 
   def write_document(db: SQL.Database, session_name: String, doc: Document_Output): Unit = {
-    db.using_statement(Data.table.insert()){ stmt =>
-      stmt.string(1) = session_name
-      stmt.string(2) = doc.name
-      stmt.string(3) = doc.sources.toString
-      stmt.bytes(4) = doc.log_xz
-      stmt.bytes(5) = doc.pdf
-      stmt.execute()
-    }
+    db.execute_statement(Data.table.insert(), body =
+      { stmt =>
+        stmt.string(1) = session_name
+        stmt.string(2) = doc.name
+        stmt.string(3) = doc.sources.toString
+        stmt.bytes(4) = doc.log_xz
+        stmt.bytes(5) = doc.pdf
+      })
   }