Thanks to visit codestin.com Credit goes to github.com
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 2c53dec commit 40af897Copy full SHA for 40af897
src/bin/psql/common.c
@@ -1577,14 +1577,15 @@ ExecQueryAndProcessResults(const char *query,
1577
if (result_status == PGRES_COPY_BOTH ||
1578
result_status == PGRES_COPY_OUT ||
1579
result_status == PGRES_COPY_IN)
1580
-
+ {
1581
/*
1582
* For some obscure reason PQgetResult does *not* return a
1583
* NULL in copy cases despite the result having been cleared,
1584
* but keeps returning an "empty" result that we have to
1585
* ignore manually.
1586
*/
1587
result = NULL;
1588
+ }
1589
else
1590
result = PQgetResult(pset.db);
1591
0 commit comments