We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 010d1af commit 0e11aeaCopy full SHA for 0e11aea
src/interfaces/odbc/environ.c
@@ -317,7 +317,7 @@ PGAPI_ConnectError( HDBC hdbc,
317
SWORD msglen;
318
319
mylog("**** PGAPI_ConnectError: hdbc=%u <%d>\n", hdbc, cbErrorMsgMax);
320
- if (RecNumber != 1)
+ if (RecNumber != 1 && RecNumber != -1)
321
return SQL_NO_DATA_FOUND;
322
if (cbErrorMsgMax < 0)
323
return SQL_ERROR;
@@ -443,7 +443,7 @@ PGAPI_EnvError( HENV henv,
443
int status;
444
445
mylog("**** PGAPI_EnvError: henv=%u <%d>\n", henv, cbErrorMsgMax);
446
447
448
449
0 commit comments