X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fexpressions.lisp;fp=sql%2Fexpressions.lisp;h=7071227a4b0964c1be2a6ec971fd30cdbec59c67;hp=1479e67afa80d2edba6e5f4dc8d3bf339599640d;hb=ee713f155f8afd9a0bc6156388c472df119a97fd;hpb=e6b52f3de8083b1dc8ec883a6545febbe0f23fad diff --git a/sql/expressions.lisp b/sql/expressions.lisp index 1479e67..7071227 100644 --- a/sql/expressions.lisp +++ b/sql/expressions.lisp @@ -813,7 +813,8 @@ uninclusive, and the args from that keyword to the end." (output-sql attributes database)) (when values (write-string " VALUES " *sql-stream*) - (output-sql values database)) + (let ((clsql-sys::*in-subselect* t)) + (output-sql values database))) (when query (write-char #\Space *sql-stream*) (output-sql query database))) @@ -870,7 +871,8 @@ uninclusive, and the args from that keyword to the end." (write-string "UPDATE " *sql-stream*) (output-sql table database) (write-string " SET " *sql-stream*) - (output-sql (apply #'vector (update-assignments)) database) + (let ((clsql-sys::*in-subselect* t)) + (output-sql (apply #'vector (update-assignments)) database)) (output-sql-where-clause where database))) t)