summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/libpq-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r--src/interfaces/libpq/libpq-int.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h
index 16555d98852..92bd9cfba83 100644
--- a/src/interfaces/libpq/libpq-int.h
+++ b/src/interfaces/libpq/libpq-int.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-int.h,v 1.19 2000/02/07 23:10:11 petere Exp $
+ * $Id: libpq-int.h,v 1.20 2000/03/11 03:08:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -121,7 +121,21 @@ struct pg_result
* last query */
int binary; /* binary tuple values if binary == 1,
* otherwise ASCII */
- PGconn *conn; /* connection we did the query on, if any */
+ /*
+ * The conn link in PGresult is no longer used by any libpq code.
+ * It should be removed entirely, because it could be a dangling link
+ * (the application could keep the PGresult around longer than it keeps
+ * the PGconn!) But there may be apps out there that depend on it,
+ * so we will leave it here at least for a release or so.
+ */
+ PGconn *xconn; /* connection we did the query on, if any */
+
+ /* Callback procedure for notice/error message processing
+ * (copied from originating PGconn).
+ */
+ PQnoticeProcessor noticeHook;
+ void *noticeArg;
+
char *errMsg; /* error message, or NULL if no error */
/* All NULL attributes in the query result point to this null string */