X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fclasses.lisp;h=7098ca2c81eafb294522578b648d896f0f20782f;hb=a4097e19c5157e87b9991549bc44f3ef598aeb90;hp=5a22584f5f3e304ae8cd7758af2a93984e2ad2f7;hpb=150e23be29d88d99e4114a8cff017b3cce005e10;p=clsql.git diff --git a/sql/classes.lisp b/sql/classes.lisp index 5a22584..7098ca2 100644 --- a/sql/classes.lisp +++ b/sql/classes.lisp @@ -644,13 +644,14 @@ uninclusive, and the args from that keyword to the end." (defmethod output-sql ((stmt sql-create-table) &optional (database *default-database*)) (flet ((output-column (column-spec) - (destructuring-bind (name type &rest constraints) + (destructuring-bind (name type &optional db-type &rest constraints) column-spec (let ((type (listify type))) (output-sql name database) (write-char #\Space *sql-stream*) (write-string - (database-get-type-specifier (car type) (cdr type) database) + (if (stringp db-type) db-type ; override definition + (database-get-type-specifier (car type) (cdr type) database)) *sql-stream*) (let ((constraints (database-constraint-statement constraints database)))