--- a/src/Pure/General/sql.scala Sun Jul 16 19:13:08 2023 +0200
+++ b/src/Pure/General/sql.scala Sun Jul 16 19:30:10 2023 +0200
@@ -734,6 +734,10 @@
override def lock_tables(tables: List[SQL.Table]): PostgreSQL.Source =
if_proper(tables, "LOCK TABLE " + tables.mkString(", ") + " IN ACCESS EXCLUSIVE MODE")
+ override def transaction[A](body: => A): A = super.transaction {
+ execute_statement("START TRANSACTION")
+ body
+ }
/* notifications: IPC via database server */
// see https://www.postgresql.org/docs/current/sql-notify.html