X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fexpressions.lisp;h=7f0ad1f82ff601a6556a8d45080fcb481494ba27;hb=d9937e92697e07d701defd1fdcee7100d005fdf6;hp=2f40e33a6e67f640b107a0a2dc9d444941c9287d;hpb=b5890c31a60303397efedb2110f46c6388426170;p=clsql.git diff --git a/sql/expressions.lisp b/sql/expressions.lisp index 2f40e33..7f0ad1f 100644 --- a/sql/expressions.lisp +++ b/sql/expressions.lisp @@ -859,11 +859,13 @@ uninclusive, and the args from that keyword to the end." (let ((keyword-package (symbol-package :foo))) (defmethod database-output-sql ((sym symbol) database) - (convert-to-db-default-case - (if (equal (symbol-package sym) keyword-package) - (concatenate 'string "'" (string sym) "'") - (symbol-name sym)) - database))) + (if (null sym) + +null-string+ + (convert-to-db-default-case + (if (equal (symbol-package sym) keyword-package) + (concatenate 'string "'" (string sym) "'") + (symbol-name sym)) + database)))) (defmethod database-output-sql ((tee (eql t)) database) (declare (ignore database))