From 3faf8e7a8aa2411f207fa09fe81982615d90a726 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 11 May 2011 12:27:41 +0200 Subject: Implement database::execute --- odb/pgsql/error.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'odb/pgsql/error.hxx') diff --git a/odb/pgsql/error.hxx b/odb/pgsql/error.hxx index 7d2138b..d4ea9e1 100644 --- a/odb/pgsql/error.hxx +++ b/odb/pgsql/error.hxx @@ -23,6 +23,13 @@ namespace odb LIBODB_PGSQL_EXPORT void translate_connection_error (connection&); + // Return true if the PGresult is in an error state. If both s and r are + // non-null, the pointed to value will be populated with the result status. + // Otherwise, s is ignored. + // + LIBODB_PGSQL_EXPORT bool + is_good_result (PGresult* r, ExecStatusType* s = 0); + // 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. All remaining parameters except c are ignored. If r -- cgit v1.1