src/Pure/General/sql.scala
changeset 78253 12d54a78bc0e
parent 78207 8e1941d3f703
child 78263 8c999990262c
equal deleted inserted replaced
78252:4dca4ba6f01b 78253:12d54a78bc0e
   640     /* explicit locking: only applicable to PostgreSQL within transaction context */
   640     /* explicit locking: only applicable to PostgreSQL within transaction context */
   641     // see https://www.postgresql.org/docs/current/sql-lock.html
   641     // see https://www.postgresql.org/docs/current/sql-lock.html
   642     // see https://www.postgresql.org/docs/current/explicit-locking.html
   642     // see https://www.postgresql.org/docs/current/explicit-locking.html
   643 
   643 
   644     override def lock_tables(tables: List[SQL.Table]): PostgreSQL.Source =
   644     override def lock_tables(tables: List[SQL.Table]): PostgreSQL.Source =
   645       "LOCK TABLE " + tables.mkString(", ") + " IN ACCESS EXCLUSIVE MODE"
   645       if_proper(tables, "LOCK TABLE " + tables.mkString(", ") + " IN ACCESS EXCLUSIVE MODE")
   646 
   646 
   647 
   647 
   648     /* notifications: IPC via database server */
   648     /* notifications: IPC via database server */
   649     // see https://www.postgresql.org/docs/current/sql-notify.html
   649     // see https://www.postgresql.org/docs/current/sql-notify.html
   650 
   650