X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-postgresql%2Fpostgresql-sql.lisp;h=16d5d2fc94a15adeff80016f7abbed465b9d0465;hb=48a9de835029c5db6ac83235b6794fa20d3e56d5;hp=bcfda5ecb5ae6ee8b8e295927b3eeb8b8969b076;hpb=7308bdf188da6424e615ca14096ef53cfb845a90;p=clsql.git diff --git a/db-postgresql/postgresql-sql.lisp b/db-postgresql/postgresql-sql.lisp index bcfda5e..16d5d2f 100644 --- a/db-postgresql/postgresql-sql.lisp +++ b/db-postgresql/postgresql-sql.lisp @@ -158,6 +158,9 @@ :message (tidy-error-message (PQerrorMessage conn-ptr)))) (unwind-protect (case (PQresultStatus result) + ;; User gave a command rather than a query + (#.pgsql-exec-status-type#command-ok + nil) (#.pgsql-exec-status-type#empty-query nil) (#.pgsql-exec-status-type#tuples-ok @@ -443,11 +446,5 @@ ;;; Database capabilities -(defmethod db-type-has-fancy-math? ((db-type (eql :postgresql))) - t) - -(defmethod db-type-default-case ((db-type (eql :postgresql))) - :lower) - (when (clsql-sys:database-type-library-loaded :postgresql) (clsql-sys:initialize-database-type :database-type :postgresql))