clarified operation: sequential vacuum to support obsolete versions 10 and 9.x;
authorwenzelm
Sat, 08 Jul 2023 19:28:26 +0200
changeset 78271 c0dc000d2a40
parent 78270 0bd366fad888
child 78272 30d035a83dbe
clarified operation: sequential vacuum to support obsolete versions 10 and 9.x;
src/Pure/General/sql.scala
--- a/src/Pure/General/sql.scala	Sat Jul 08 19:14:09 2023 +0200
+++ b/src/Pure/General/sql.scala	Sat Jul 08 19:28:26 2023 +0200
@@ -609,9 +609,7 @@
     override def toString: String = name
 
     override def vacuum(tables: SQL.Tables = SQL.Tables.empty): Unit =
-      if (tables.list.nonEmpty) {
-        execute_statement("VACUUM" + if_proper(tables.list, " " + commas(tables.list.map(_.ident))))
-      }
+      for (table <- tables) execute_statement("VACUUM " + table.ident)
 
     override def now(): Date = {
       val now = SQL.Column.date("now")