aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/error.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-12-01 12:09:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-12-01 12:09:07 +0200
commitdce9ac4635ec667a27712ad4b0251c1a2ca5df06 (patch)
tree43a803f08fd4b81493c0f72bcef7727e08d44c1a /odb/pgsql/error.hxx
parentece02b4c8cd6f1a332afdb4655b675d1193ed9c2 (diff)
Detect and mark connection as failed
Diffstat (limited to 'odb/pgsql/error.hxx')
-rw-r--r--odb/pgsql/error.hxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/odb/pgsql/error.hxx b/odb/pgsql/error.hxx
index 865cf0d..018c5fd 100644
--- a/odb/pgsql/error.hxx
+++ b/odb/pgsql/error.hxx
@@ -11,17 +11,13 @@
#include <libpq-fe.h>
#include <odb/pgsql/version.hxx>
+#include <odb/pgsql/forward.hxx> // connection
#include <odb/pgsql/details/export.hxx>
namespace odb
{
namespace pgsql
{
- class connection;
-
- LIBODB_PGSQL_EXPORT void
- translate_error (connection&);
-
// Translate an error condition involving a PGresult*. If r is null, it is
// assumed that the error was caused due to a bad connection or a memory
// allocation error.