Skip to content

Commit b0a4c65

Browse files
author
rpedela
committed
Surround PGRES_SINGLE_TUPLE with an #ifdef for single row mode support.
1 parent fe47a01 commit b0a4c65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/binding.cc

+2
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,9 @@ class Connection : public ObjectWrap {
659659
ExecStatusType status = PQresultStatus(result);
660660
switch(status) {
661661
case PGRES_TUPLES_OK:
662+
#ifdef SINGLE_ROW_SUPPORTED
662663
case PGRES_SINGLE_TUPLE:
664+
#endif
663665
{
664666
EmitRowDescription(result);
665667
HandleTuplesResult(result);

0 commit comments

Comments
 (0)