X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fexpressions.lisp;h=6aaededd7c6b32aa1c58337c9257fc6e400d29a8;hp=91a46d7fb2c6c30592056c6ea98c2c25e260aee7;hb=581e3910304b4054f41b0cb41105b03519af63b1;hpb=1de33568db24f72feae9fdf36fd828b969b178a7 diff --git a/sql/expressions.lisp b/sql/expressions.lisp index 91a46d7..6aaeded 100644 --- a/sql/expressions.lisp +++ b/sql/expressions.lisp @@ -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)