X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=interfaces%2Fpostgresql%2Fpostgresql-sql.cl;h=4d473a02c428328622140ce4ce8e93e3c7d8a67a;hb=d9e609eddd22c1f837d9b030ebc15b0f40ddf5f0;hp=6dedf46fa2a02f06fb074d30f9f50881c780289d;hpb=01e78fad2d9c4c18f11ec032c80afa59212ba109;p=clsql.git diff --git a/interfaces/postgresql/postgresql-sql.cl b/interfaces/postgresql/postgresql-sql.cl index 6dedf46..4d473a0 100644 --- a/interfaces/postgresql/postgresql-sql.cl +++ b/interfaces/postgresql/postgresql-sql.cl @@ -8,7 +8,7 @@ ;;;; Original code by Pierre R. Mai ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: postgresql-sql.cl,v 1.3 2002/03/24 18:08:27 kevin Exp $ +;;;; $Id: postgresql-sql.cl,v 1.5 2002/03/24 18:39:32 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -161,7 +161,7 @@ (PQresultErrorMessage result))))) (PQclear result)))))) -(defstruct postgresql-result-sset +(defstruct postgresql-result-set (res-ptr (uffi:make-null-pointer 'pgsql-result) :type pgsql-result-def) (field-types nil :type cons) @@ -188,13 +188,15 @@ (values (make-postgresql-result-set :res-ptr result :num-fields (PQnfields result) - :num-tuples (PQntuples result)) + :num-tuples (PQntuples result) + :field-types field-types) (PQnfields result) (PQntuples result)) (values (make-postgresql-result-set :res-ptr result :num-fields (PQnfields result) - :num-tuples (PQntuples result)) + :num-tuples (PQntuples result) + :field-types field-types) (PQnfields result)))) (t (unwind-protect