# HG changeset patch # User wenzelm # Date 1473023074 -7200 # Node ID b948c4f92b88fb35e638059897fccd2e789c9171 # Parent baa20f3b6cea0809b00f33a81908d42c678e0619 tuned; diff -r baa20f3b6cea -r b948c4f92b88 src/Pure/Tools/sql.scala --- a/src/Pure/Tools/sql.scala Sun Sep 04 22:04:07 2016 +0200 +++ b/src/Pure/Tools/sql.scala Sun Sep 04 23:04:34 2016 +0200 @@ -141,12 +141,12 @@ } def sql_create(strict: Boolean, rowid: Boolean): String = - "CREATE TABLE " + (if (strict) "" else " IF NOT EXISTS ") + + "CREATE TABLE " + (if (strict) "" else "IF NOT EXISTS ") + quote_ident(name) + " " + columns.map(_.sql_decl).mkString("(", ", ", ")") + (if (rowid) "" else " WITHOUT ROWID") def sql_drop(strict: Boolean): String = - "DROP TABLE " + (if (strict) "" else " IF EXISTS ") + quote_ident(name) + "DROP TABLE " + (if (strict) "" else "IF EXISTS ") + quote_ident(name) override def toString: String = "TABLE " + quote_ident(name) + " " + columns.map(_.toString).mkString("(", ", ", ")")