From b0a4c655674beab890cad5438fd059b2fed0d8db Mon Sep 17 00:00:00 2001 From: rpedela Date: Wed, 4 Sep 2013 11:50:52 -0600 Subject: [PATCH] Surround PGRES_SINGLE_TUPLE with an #ifdef for single row mode support. --- src/binding.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/binding.cc b/src/binding.cc index 2333e1f7..0d397220 100644 --- a/src/binding.cc +++ b/src/binding.cc @@ -659,7 +659,9 @@ protected: ExecStatusType status = PQresultStatus(result); switch(status) { case PGRES_TUPLES_OK: +#ifdef SINGLE_ROW_SUPPORTED case PGRES_SINGLE_TUPLE: +#endif { EmitRowDescription(result); HandleTuplesResult(result);