X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=db-postgresql%2Fpostgresql-sql.lisp;h=aad11a0c2aeb1d764be584c50cb551b9e00e13d3;hp=de6daf53c586d2f5c6ee44638e155660483a6c7f;hb=d2d49ab13c98bc7a1819a0fd3968268a5567bdc3;hpb=5ed1f05543cbd24b3f2bb735f2cfc03ea85e51ec diff --git a/db-postgresql/postgresql-sql.lisp b/db-postgresql/postgresql-sql.lisp index de6daf5..aad11a0 100644 --- a/db-postgresql/postgresql-sql.lisp +++ b/db-postgresql/postgresql-sql.lisp @@ -6,8 +6,6 @@ ;;;; Purpose: High-level PostgreSQL interface using UFFI ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id$ -;;;; ;;;; CLSQL users are granted the rights to distribute and use this software ;;;; as governed by the terms of the Lisp Lesser GNU Public License ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. @@ -187,7 +185,7 @@ (error 'sql-database-data-error :database database :expression query-expression - :error-id (PQresultStatus result) + :error-id (PQresultErrorField result +PG-DIAG-SQLSTATE+) :message (tidy-error-message (PQresultErrorMessage result))))) (PQclear result)))))) @@ -269,7 +267,7 @@ (error 'sql-database-data-error :database database :expression query-expression - :error-id (PQresultStatus result) + :error-id (PQresultErrorField result +PG-DIAG-SQLSTATE+) :message (tidy-error-message (PQresultErrorMessage result))) (PQclear result))))))))