;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: postgresql-package.lisp,v 1.2 2003/05/07 02:45:08 kevin Exp $
-;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;; CLSQL users are granted the rights to distribute and use this software
(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
#:PQerrorMessage
#:PQexec
#:PQresultStatus
+ #:PQresultErrorField ; used to grab the SQLSTATE code from an error
#:PQresultErrorMessage
#:PQntuples
#:PQnfields
#:PQgetisnull
#:PQclear
#:PQisBusy
-
+
;;Large Objects (Marc B)
#:lo-create
#:lo-open