X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fobjects.lisp;h=8e56989d01eaa6751ea673c1e8d3c9963502a109;hp=9598ea643d3172bf8acdd209be7fd443e42b52a6;hb=9698f9b6d0f6439b7547d198bb9db95f61b20c5d;hpb=9711a224f9684aaaba08e20eaab826be1beee460 diff --git a/sql/objects.lisp b/sql/objects.lisp index 9598ea6..8e56989 100644 --- a/sql/objects.lisp +++ b/sql/objects.lisp @@ -397,7 +397,7 @@ superclass of the newly-defined View Class." (let ((qualifier (key-qualifier-for-instance instance :database vd))) (delete-records :from vt :where qualifier :database vd) (setf (slot-value instance 'view-database) nil)) - (error 'clsql-no-database-error nil)))) + (error 'clsql-base::clsql-no-database-error :database nil)))) (defmethod update-instance-from-records ((instance standard-db-object) &key (database *default-database*)) @@ -498,6 +498,10 @@ superclass of the newly-defined View Class." "VARCHAR" "VARCHAR(255)"))) +(deftype universal-time () + "A positive integer as returned by GET-UNIVERSAL-TIME." + '(integer 1 *)) + (defmethod database-get-type-specifier ((type (eql 'universal-time)) args database) (declare (ignore args database)) "BIGINT") @@ -665,9 +669,9 @@ superclass of the newly-defined View Class." (string (if (string= "0" val) nil t)) (integer (if (zerop val) nil t)))) (:postgresql - (if (database-type :odbc) + (if (eq :odbc (database-type database)) (if (string= "0" val) nil t) - (equal "t" val))) + (equal "t" val))) (t (equal "t" val)))) @@ -795,7 +799,7 @@ superclass of the newly-defined View Class." objects)))) (let* ((*db-deserializing* t) (*default-database* (or database - (error 'clsql-no-database-error nil))) + (error 'clsql-base::clsql-no-database-error :database nil))) (sclasses (mapcar #'find-class view-classes)) (sels (mapcar #'generate-selection-list sclasses)) (fullsels (apply #'append sels))