X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fexpressions.lisp;h=7071227a4b0964c1be2a6ec971fd30cdbec59c67;hb=70499ccb5a3a12103a5c4978ae3c2c5fcdc3eb02;hp=9335ae0e0a5e0995357da7cabaa331de00778950;hpb=2c69ef4d171d214a7d54b598184dadb864704852;p=clsql.git diff --git a/sql/expressions.lisp b/sql/expressions.lisp index 9335ae0..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) @@ -939,7 +941,7 @@ uninclusive, and the args from that keyword to the end." (when (and (eq :mysql (database-underlying-type database)) transactions (db-type-transaction-capable? :mysql database)) - (write-string " Type=InnoDB" *sql-stream*)))) + (write-string " ENGINE=innodb" *sql-stream*)))) t)