X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=sql%2Fclasses.lisp;h=6848621aa387c6436a22907ce5863c0b59589580;hb=5148be446aee32ec705beac3fbba35f499df4fd4;hp=bd87f785648f2cebcac80f7e1d9084a90fd97300;hpb=d0b59237966d6fbc27adcbbae11fa85087ea122d;p=clsql.git diff --git a/sql/classes.lisp b/sql/classes.lisp index bd87f78..6848621 100644 --- a/sql/classes.lisp +++ b/sql/classes.lisp @@ -100,8 +100,7 @@ (call-next-method))))) (defmethod output-sql ((expr sql-ident) database) - (with-slots (name) - expr + (with-slots (name) expr (write-string (convert-to-db-default-case (etypecase name @@ -768,7 +767,8 @@ uninclusive, and the args from that keyword to the end." (write-char #\Space *sql-stream*) (write-string (if (stringp db-type) db-type ; override definition - (database-get-type-specifier (car type) (cdr type) database)) + (database-get-type-specifier (car type) (cdr type) database + (database-underlying-type database))) *sql-stream*) (let ((constraints (database-constraint-statement (if (and db-type (symbolp db-type))