r10077: * multiple: Apply patch from Joerg Hoehle with multiple
[clsql.git] / db-postgresql / postgresql-sql.lisp
index 2d307c243f439db4848a38243618010cb718c159..6a8c7c83290c6852deff730f229e432e4b9661d8 100644 (file)
       (coerce-string user)
       (let ((connection (PQsetdbLogin host port options tty db user password)))
         (declare (type postgresql::pgsql-conn-ptr connection))
-        (unless (eq (PQstatus connection) :connection-ok)
+        (unless (eq (PQstatus connection)
+                   pgsql-conn-status-type#connection-ok)
           ;; Connect failed
           (error 'sql-connection-error
                  :database-type :postgresql