aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/error.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/error.ixx')
-rw-r--r--odb/pgsql/error.ixx15
1 files changed, 9 insertions, 6 deletions
diff --git a/odb/pgsql/error.ixx b/odb/pgsql/error.ixx
index f087aeb..6a010aa 100644
--- a/odb/pgsql/error.ixx
+++ b/odb/pgsql/error.ixx
@@ -1,13 +1,12 @@
// file : odb/pgsql/error.ixx
-// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
namespace odb
{
namespace pgsql
{
- bool
- inline is_good_result (PGresult* r, ExecStatusType* s)
+ inline bool
+ is_good_result (PGresult* r, ExecStatusType* s)
{
if (r != 0)
{
@@ -17,9 +16,13 @@ namespace odb
*s = status;
return
- status != PGRES_BAD_RESPONSE &&
- status != PGRES_NONFATAL_ERROR &&
- status != PGRES_FATAL_ERROR;
+ status != PGRES_BAD_RESPONSE
+ && status != PGRES_NONFATAL_ERROR
+ && status != PGRES_FATAL_ERROR
+#ifdef LIBPQ_HAS_PIPELINING
+ && status != PGRES_PIPELINE_ABORTED
+#endif
+ ;
}
return false;