use output-sql-where-clause when rendering update statements
authorRyan Davis <ryan@acceleration.net>
Mon, 26 Mar 2012 19:57:24 +0000 (15:57 -0400)
committerRyan Davis <ryan@acceleration.net>
Mon, 26 Mar 2012 19:57:24 +0000 (15:57 -0400)
sql/expressions.lisp

index 281da967706d13118df81abbe738d17cf8e0d698..9335ae0e0a5e0995357da7cabaa331de00778950 100644 (file)
@@ -871,9 +871,7 @@ uninclusive, and the args from that keyword to the end."
       (output-sql table database)
       (write-string " SET " *sql-stream*)
       (output-sql (apply #'vector (update-assignments)) database)
       (output-sql table database)
       (write-string " SET " *sql-stream*)
       (output-sql (apply #'vector (update-assignments)) database)
-      (when where
-        (write-string " WHERE " *sql-stream*)
-        (output-sql where database))))
+      (output-sql-where-clause where database)))
   t)
 
 ;; CREATE TABLE
   t)
 
 ;; CREATE TABLE