diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-12-01 12:09:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-12-01 12:09:07 +0200 |
commit | dce9ac4635ec667a27712ad4b0251c1a2ca5df06 (patch) | |
tree | 43a803f08fd4b81493c0f72bcef7727e08d44c1a /odb/pgsql/error.hxx | |
parent | ece02b4c8cd6f1a332afdb4655b675d1193ed9c2 (diff) |
Detect and mark connection as failed
Diffstat (limited to 'odb/pgsql/error.hxx')
-rw-r--r-- | odb/pgsql/error.hxx | 6 |
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. |