X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fobjects.lisp;h=2d569c754a0ea6deff68d83edeba3a92b029a403;hb=ec9b352b8205e4204a06797f98970b03cf532ab2;hp=0232917ff4662b7ca80ae62d79b75b86cfd4c08d;hpb=f69c5bfba59d54628f9a08b83413ec3df3c92432;p=clsql.git diff --git a/sql/objects.lisp b/sql/objects.lisp index 0232917..2d569c7 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*)) @@ -664,6 +664,10 @@ superclass of the newly-defined View Class." (etypecase val (string (if (string= "0" val) nil t)) (integer (if (zerop val) nil t)))) + (:postgresql + (if (eq :odbc (database-type database)) + (if (string= "0" val) nil t) + (equal "t" val))) (t (equal "t" val)))) @@ -791,7 +795,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))