projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update to debhelper 5
[clsql.git]
/
db-postgresql
/
postgresql-package.lisp
diff --git
a/db-postgresql/postgresql-package.lisp
b/db-postgresql/postgresql-package.lisp
index cd007c6d9e053d23df628705fde77ec9e049ae36..aded77b9eb7dc33da361cb5318976e6ca0fc607d 100644
(file)
--- a/
db-postgresql/postgresql-package.lisp
+++ b/
db-postgresql/postgresql-package.lisp
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id
: postgresql-package.lisp,v 1.1 2002/09/30 10:19:23 kevin Exp
$
+;;;; $Id$
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-16,12
+16,12
@@
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
-(in-package :cl-user)
+(in-package #:cl-user)
-(defpackage :postgresql
- (:nicknames :pgsql)
- (:use :common-lisp :clsql-uffi)
+(defpackage #:pgsql
+ #-(and :lispworks (not :lispworks4))
+ (:nicknames #:postgresql)
+ (:use #:cl #:clsql-uffi)
(:export
#:pgsql-oid
#:pgsql-conn-status-type
(:export
#:pgsql-oid
#:pgsql-conn-status-type
@@
-45,7
+45,11
@@
#: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
#:PQlogin
;; Functions
#:PQsetdbLogin
#:PQlogin
@@
-54,6
+58,7
@@
#:PQerrorMessage
#:PQexec
#:PQresultStatus
#:PQerrorMessage
#:PQexec
#:PQresultStatus
+ #:PQresultErrorField ; used to grab the SQLSTATE code from an error
#:PQresultErrorMessage
#:PQntuples
#:PQnfields
#:PQresultErrorMessage
#:PQntuples
#:PQnfields
@@
-69,7
+74,7
@@
#:PQgetisnull
#:PQclear
#:PQisBusy
#:PQgetisnull
#:PQclear
#:PQisBusy
-
+
;;Large Objects (Marc B)
#:lo-create
#:lo-open
;;Large Objects (Marc B)
#:lo-create
#:lo-open