X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fexpressions.lisp;h=746ed001ee608232be7f24e6f78d9591b62ac4bc;hb=2a0e0fdaa59c9b431bad7ef35cab891f831a9d3b;hp=91a46d7fb2c6c30592056c6ea98c2c25e260aee7;hpb=5ed1f05543cbd24b3f2bb735f2cfc03ea85e51ec;p=clsql.git diff --git a/sql/expressions.lisp b/sql/expressions.lisp index 91a46d7..746ed00 100644 --- a/sql/expressions.lisp +++ b/sql/expressions.lisp @@ -114,7 +114,7 @@ (write-string (etypecase name (string name) - (symbol (symbol-name name) database)) + (symbol (symbol-name name))) *sql-stream*)) t) @@ -571,7 +571,8 @@ uninclusive, and the args from that keyword to the end." (write-string "ON " *sql-stream*) (output-sql distinct database) (write-char #\Space *sql-stream*))) - (output-sql (apply #'vector selections) database) + (let ((*in-subselect* t)) + (output-sql (apply #'vector selections) database)) (when from (write-string " FROM " *sql-stream*) (flet ((ident-table-equal (a b)