projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r11228: * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
[clsql.git]
/
db-postgresql
/
postgresql-package.lisp
diff --git
a/db-postgresql/postgresql-package.lisp
b/db-postgresql/postgresql-package.lisp
index 32ea77db7c68e8a46f2ea84b72725f9957e84f55..080eaf96ad5ca6a568bf3f0e1bd57905355f731d 100644
(file)
--- a/
db-postgresql/postgresql-package.lisp
+++ b/
db-postgresql/postgresql-package.lisp
@@
-44,6
+44,10
@@
#:pgsql-ftype#int8
#:pgsql-ftype#float4
#:pgsql-ftype#float8
#:pgsql-ftype#int8
#:pgsql-ftype#float4
#:pgsql-ftype#float8
+
+ ;; Used by PQresultErrorField to get the sql error code
+ #:+PG-DIAG-SQLSTATE+
+
;; Functions
#:PQsetdbLogin
;; Functions
#:PQsetdbLogin
@@
-53,6
+57,7
@@
#:PQerrorMessage
#:PQexec
#:PQresultStatus
#:PQerrorMessage
#:PQexec
#:PQresultStatus
+ #:PQresultErrorField ; used to grab the SQLSTATE code from an error
#:PQresultErrorMessage
#:PQntuples
#:PQnfields
#:PQresultErrorMessage
#:PQntuples
#:PQnfields