r11859: Canonicalize whitespace
[clsql.git] / db-postgresql / postgresql-package.lisp
index 32ea77db7c68e8a46f2ea84b72725f9957e84f55..aded77b9eb7dc33da361cb5318976e6ca0fc607d 100644 (file)
@@ -18,8 +18,9 @@
 
 (in-package #:cl-user)
 
-(defpackage #:postgresql
-    (:nicknames #:pgsql)
+(defpackage #:pgsql
+    #-(and :lispworks (not :lispworks4))
+    (:nicknames #:postgresql)
     (:use #:cl #:clsql-uffi)
     (:export
      #:pgsql-oid
      #:pgsql-ftype#int8
      #:pgsql-ftype#float4
      #:pgsql-ftype#float8
-     
+
+     ;; Used by PQresultErrorField to get the sql error code
+     #:+PG-DIAG-SQLSTATE+
+
+
      ;; Functions
      #:PQsetdbLogin
      #:PQlogin
@@ -53,6 +58,7 @@
      #:PQerrorMessage
      #:PQexec
      #:PQresultStatus
+     #:PQresultErrorField ; used to grab the SQLSTATE code from an error
      #:PQresultErrorMessage
      #:PQntuples
      #:PQnfields
@@ -68,7 +74,7 @@
      #:PQgetisnull
      #:PQclear
      #:PQisBusy
-     
+
      ;;Large Objects (Marc B)
      #:lo-create
      #:lo-open