From beb52e1cbd129549a4c70c44d567c891f656359f Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 13 Jul 2011 10:01:13 +0200 Subject: Get integer_datetimes server var on connection to server --- odb/pgsql/connection.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'odb/pgsql/connection.cxx') diff --git a/odb/pgsql/connection.cxx b/odb/pgsql/connection.cxx index 4d51817..41fa7f0 100644 --- a/odb/pgsql/connection.cxx +++ b/odb/pgsql/connection.cxx @@ -44,7 +44,15 @@ namespace odb throw database_exception (m); } + // Suppress server notifications to stdout. + // PQsetNoticeProcessor (handle_, &nop_process_notice, 0); + + // Establish whether date/time values are represented as + // 8-byte integers. + // + integer_datetimes_ = + *PQparameterStatus (handle_, "integer_datetimes") == '1'; } connection:: -- cgit v1.1