From 80bbfe76d570f2c4066abc559b59493e64f9f09a Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Mon, 11 Mar 2002 15:08:18 +0000
Subject: [PATCH] Inlined a patch to add the libpq setNoticeProcessor
 capability to libpq++.

Ofir Reichenberg
---
 src/interfaces/libpq++/pgconnection.cc | 6 +++++-
 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();
-- 
GitLab