X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-postgresql%2Fpostgresql-package.lisp;h=aac66089112c122bcab7de92c0b00e010819ceca;hb=1a446890f95ab363af82529a133546d722ef21b1;hp=cd007c6d9e053d23df628705fde77ec9e049ae36;hpb=7d50938ba2db52a713498e49aa1679deae6f0b6b;p=clsql.git diff --git a/db-postgresql/postgresql-package.lisp b/db-postgresql/postgresql-package.lisp index cd007c6..aac6608 100644 --- a/db-postgresql/postgresql-package.lisp +++ b/db-postgresql/postgresql-package.lisp @@ -7,8 +7,6 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: postgresql-package.lisp,v 1.1 2002/09/30 10:19:23 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 @@ -16,12 +14,12 @@ ;;;; (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 @@ -45,7 +43,11 @@ #:pgsql-ftype#int8 #:pgsql-ftype#float4 #:pgsql-ftype#float8 - + + ;; Used by PQresultErrorField to get the sql error code + #:+PG-DIAG-SQLSTATE+ + + ;; Functions #:PQsetdbLogin #:PQlogin @@ -54,6 +56,7 @@ #:PQerrorMessage #:PQexec #:PQresultStatus + #:PQresultErrorField ; used to grab the SQLSTATE code from an error #:PQresultErrorMessage #:PQntuples #:PQnfields @@ -69,7 +72,7 @@ #:PQgetisnull #:PQclear #:PQisBusy - + ;;Large Objects (Marc B) #:lo-create #:lo-open