File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1010 * Copyright (c) 1994, Regents of the University of California
1111 *
1212 * IDENTIFICATION
13- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.12 2001/09/30 22:30:37 tgl Exp $
13+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.13 2002/03/11 15:08:18 momjian Exp $
1414 *
1515 *-------------------------------------------------------------------------
1616 */
@@ -159,4 +159,8 @@ const char* PgConnection::DBName() const
159159return (const char *)PQdb (pgConn);
160160}
161161
162+ PQnoticeProcessor PgConnection::SetNoticeProcessor (PQnoticeProcessor proc, void *arg)
163+ {
164+ return PQsetNoticeProcessor (pgConn, proc, arg);
165+ }
162166
Original file line number Diff line number Diff line change 1313 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
1414 * Portions Copyright (c) 1994, Regents of the University of California
1515 *
16- * $Id: pgconnection.h,v 1.15 2002/01/22 19:02:40 tgl Exp $
16+ * $Id: pgconnection.h,v 1.16 2002/03/11 15:08:18 momjian Exp $
1717 *
1818 *-------------------------------------------------------------------------
1919 */
@@ -80,6 +80,9 @@ class DLLIMPORT PgConnection {
8080 int ExecTuplesOk (const char * query); // send a command and check if tuples are returned
8181 PGnotify* Notifies ();
8282
83+ // set the notice processor
84+ PQnoticeProcessor SetNoticeProcessor (PQnoticeProcessor proc, void *arg);
85+
8386protected:
8487 ConnStatusType Connect (const char * conninfo);
8588 void CloseConnection ();
You can’t perform that action at this time.
0 commit comments