tuned;
authorwenzelm
Mon, 01 May 2017 20:29:44 +0200
changeset 65673 9cd66d9c3863
parent 65672 3848e278c278
child 65674 23897f5d885d
tuned;
src/Pure/General/sql.scala
--- a/src/Pure/General/sql.scala	Mon May 01 20:28:27 2017 +0200
+++ b/src/Pure/General/sql.scala	Mon May 01 20:29:44 2017 +0200
@@ -108,9 +108,9 @@
 
     def sql: String = identifer(name)
     def sql_decl(sql_type: Type.Value => String): String =
-      sql + " " + sql_type(T) + (if (strict || primary_key) " NOT NULL" else "")
+      identifer(name) + " " + sql_type(T) + (if (strict || primary_key) " NOT NULL" else "")
 
-    def sql_where_eq: String = "WHERE " + sql + " = "
+    def sql_where_eq: String = "WHERE " + identifer(name) + " = "
     def sql_where_equal(s: String): String = sql_where_eq + string(s)
 
     override def toString: String = sql_decl(sql_type_default)