X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fobjects.lisp;h=627989b104c1da1b34f47b68f9ff7a4eb511ca08;hb=b43e20a168dae4ae9d176ebc0fbf18ea6e4517dc;hp=78d70442e4955616bb060a973ce02c3694194085;hpb=1b5725b57eb64c5e3a688f805f46d5f66e11db7b;p=clsql.git diff --git a/sql/objects.lisp b/sql/objects.lisp index 78d7044..627989b 100644 --- a/sql/objects.lisp +++ b/sql/objects.lisp @@ -13,7 +13,7 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(in-package #:clsql-sys) +(in-package #:clsql) (defclass standard-db-object () ((view-database :initform nil :initarg :view-database :reader view-database @@ -169,8 +169,9 @@ superclass of the newly-defined View Class." (defclass ,class ,supers ,slots ,@(if (find :metaclass `,cl-options :key #'car) `,cl-options - (cons '(:metaclass clsql-sys::standard-db-class) `,cl-options))) - (finalize-inheritance (find-class ',class)))) + (cons '(:metaclass clsql::standard-db-class) `,cl-options))) + (finalize-inheritance (find-class ',class)) + (find-class ',class))) (defun keyslots-for-class (class) (slot-value class 'key-slots)) @@ -465,6 +466,10 @@ superclass of the newly-defined View Class." (format nil "INT(~A)" (car args)) "INT")) +(deftype bigint () + "An integer larger than a 32-bit integer, this width may vary by SQL implementation." + 'integer) + (defmethod database-get-type-specifier ((type (eql 'bigint)) args database) (declare (ignore args database)) "BIGINT")