diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-03-11 15:08:18 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-03-11 15:08:18 +0000 |
commit | 80bbfe76d570f2c4066abc559b59493e64f9f09a (patch) | |
tree | 151bd43c1913f856fa3ff7045ed1bdd463494241 | |
parent | 9f9e3c9803a2690d213c498029ac4abf6f3f73b4 (diff) | |
download | postgresql-80bbfe76d570f2c4066abc559b59493e64f9f09a.tar.gz postgresql-80bbfe76d570f2c4066abc559b59493e64f9f09a.zip |
Inlined a patch to add the libpq setNoticeProcessor capability to
libpq++.
Ofir Reichenberg
-rw-r--r-- | src/interfaces/libpq++/pgconnection.cc | 6 | ||||
-rw-r--r-- | src/interfaces/libpq++/pgconnection.h | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/interfaces/libpq++/pgconnection.cc b/src/interfaces/libpq++/pgconnection.cc index 11db62c2867..352b70fb0cc 100644 --- a/src/interfaces/libpq++/pgconnection.cc +++ b/src/interfaces/libpq++/pgconnection.cc @@ -10,7 +10,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.12 2001/09/30 22:30:37 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.13 2002/03/11 15:08:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -159,4 +159,8 @@ const char* PgConnection::DBName() const return (const char *)PQdb(pgConn); } +PQnoticeProcessor PgConnection::SetNoticeProcessor(PQnoticeProcessor proc, void *arg) +{ +return PQsetNoticeProcessor(pgConn, proc, arg); +} diff --git a/src/interfaces/libpq++/pgconnection.h b/src/interfaces/libpq++/pgconnection.h index 9e025abe2df..95ee385f757 100644 --- a/src/interfaces/libpq++/pgconnection.h +++ b/src/interfaces/libpq++/pgconnection.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pgconnection.h,v 1.15 2002/01/22 19:02:40 tgl Exp $ + * $Id: pgconnection.h,v 1.16 2002/03/11 15:08:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -80,6 +80,9 @@ public: int ExecTuplesOk(const char* query); // send a command and check if tuples are returned PGnotify* Notifies(); + // set the notice processor + PQnoticeProcessor SetNoticeProcessor(PQnoticeProcessor proc, void *arg); + protected: ConnStatusType Connect(const char* conninfo); void CloseConnection(); |