X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fooddl.lisp;h=d44f0221b420e9bda065995cf718c114e483e3de;hp=64d974a99f758a91b487ff48a676b770475b979e;hb=d0b5c8c2a14929792d2d5818b57db27cae4484b2;hpb=39ee7191fd3087c2d7e149b33dd3e985db021721 diff --git a/sql/ooddl.lisp b/sql/ooddl.lisp index 64d974a..d44f022 100644 --- a/sql/ooddl.lisp +++ b/sql/ooddl.lisp @@ -21,6 +21,9 @@ (:metaclass standard-db-class) (:documentation "Superclass for all CLSQL View Classes.")) +(defparameter *default-string-length* 255 + "The length of a string which does not have a user-specified length.") + (defvar *db-auto-sync* nil "A non-nil value means that creating View Class instances or setting their slots automatically creates/updates the @@ -118,7 +121,7 @@ in DATABASE which defaults to *DEFAULT-DATABASE*." (setf cdef (append cdef (list (view-class-slot-db-type slotdef)))) (let ((const (view-class-slot-db-constraints slotdef))) (when const - (setq cdef (append cdef (list const))))) + (setq cdef (append cdef (listify const))))) cdef)))