X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fexpressions.lisp;h=3a2532aafbb18e8c8e8d7ef502583deb42ab50a9;hp=bfb33c1550768270a87533a60350e66d58fc5d65;hb=44c87a075cbe29141d90dc49c501f382a6d81fbe;hpb=65a91423955280d081858aadafab379e23b4304f diff --git a/sql/expressions.lisp b/sql/expressions.lisp index bfb33c1..3a2532a 100644 --- a/sql/expressions.lisp +++ b/sql/expressions.lisp @@ -67,7 +67,8 @@ (defmethod print-object ((self %sql-expression) stream) (print-unreadable-object (self stream :type t) - (write-string (sql-output self) stream))) + (write-string (sql-output self) stream)) + self) ;; For straight up strings @@ -91,7 +92,8 @@ (defmethod print-object ((ident sql) stream) (format stream "#<~S \"~A\">" (type-of ident) - (sql-output ident nil))) + (sql-output ident nil)) + ident) ;; For SQL Identifiers of generic type @@ -830,7 +832,7 @@ uninclusive, and the args from that keyword to the end." (defmethod database-output-sql ((str string) database) (declare (ignore database) (optimize (speed 3) (safety 1) #+cmu (extensions:inhibit-warnings 3)) - (type (simple-array * (*)) str)) + (simple-string str)) (let ((len (length str))) (declare (type fixnum len)) (cond ((zerop len)