X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-postgresql-socket%2Fpostgresql-socket-api.lisp;h=69496c27b33369622dd9c893515a4f88f2c84334;hb=1dda729b250779079efbdc1d3f6bbb3ae4a20ba4;hp=fe31cedd1424c9b183d59f2510d7275f1ca659dc;hpb=8b5250e14e3280bdc4641c3b35a8dc68ca4dbde7;p=clsql.git diff --git a/db-postgresql-socket/postgresql-socket-api.lisp b/db-postgresql-socket/postgresql-socket-api.lisp index fe31ced..69496c2 100644 --- a/db-postgresql-socket/postgresql-socket-api.lisp +++ b/db-postgresql-socket/postgresql-socket-api.lisp @@ -27,13 +27,13 @@ (:float4 700) (:float8 701))) -(defmethod clsql-base-sys:database-type-library-loaded ((database-type +(defmethod clsql-base:database-type-library-loaded ((database-type (eql :postgresql-socket))) "T if foreign library was able to be loaded successfully. Always true for socket interface" t) -(defmethod clsql-base-sys:database-type-load-foreign ((database-type (eql :postgresql-socket))) +(defmethod clsql-base:database-type-load-foreign ((database-type (eql :postgresql-socket))) t) @@ -560,8 +560,7 @@ connection, if it is still open." (force-output (postgresql-connection-socket connection))) (defun wait-for-query-results (connection) - (asse -rt (postgresql-connection-open-p connection)) + (assert (postgresql-connection-open-p connection)) (let ((socket (postgresql-connection-socket connection)) (cursor-name nil) (error nil)) @@ -601,8 +600,9 @@ rt (postgresql-connection-open-p connection)) :connection connection :message message)))) (#.+notice-response-message+ (let ((message (read-socket-value-string socket))) - (warn 'postgresql-warning - :connection connection :message message))) + (unless (eq :ignore clsql-base:*backend-warning-behavior*) + (warn 'postgresql-warning + :connection connection :message message)))) (#.+notification-response-message+ (let ((pid (read-socket-value-int32 socket)) (message (read-socket-value-string socket)))