aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-12 15:13:04 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-12 15:15:03 +0200
commitbcc698eacb68905bb374b9819972f549732bc13b (patch)
treedcfed3a561e3bd0c6f2eaec852c358e9308458a1
parent553e638620d855fc6c15094dd4be531d1ac7a2e9 (diff)
Suppress server notification messages
-rw-r--r--odb/pgsql/connection.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/pgsql/connection.cxx b/odb/pgsql/connection.cxx
index afb7670..4d51817 100644
--- a/odb/pgsql/connection.cxx
+++ b/odb/pgsql/connection.cxx
@@ -18,6 +18,14 @@ namespace odb
{
namespace pgsql
{
+ namespace
+ {
+ void
+ nop_process_notice (void*, const char*)
+ {
+ }
+ }
+
connection::
connection (database_type& db)
: db_ (db),
@@ -35,6 +43,8 @@ namespace odb
throw database_exception (m);
}
+
+ PQsetNoticeProcessor (handle_, &nop_process_notice, 0);
}
connection::