mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-12-02 05:33:45 +03:00
Comment on special handling of PGRES_COPY_BOTH
This commit is contained in:
parent
318706f28c
commit
0d731aa12e
|
@ -1062,6 +1062,10 @@ pq_get_last_result(connectionObject *conn)
|
||||||
PQclear(result);
|
PQclear(result);
|
||||||
}
|
}
|
||||||
result = res;
|
result = res;
|
||||||
|
|
||||||
|
/* After entering copy both mode, libpq will make a phony
|
||||||
|
* PGresult for us every time we query for it, so we need to
|
||||||
|
* break out of this endless loop. */
|
||||||
if (PQresultStatus(result) == PGRES_COPY_BOTH) {
|
if (PQresultStatus(result) == PGRES_COPY_BOTH) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user