Comment on special handling of PGRES_COPY_BOTH

This commit is contained in:
Oleksandr Shulgin 2015-06-30 16:34:17 +02:00
parent 318706f28c
commit 0d731aa12e

View File

@ -1062,6 +1062,10 @@ pq_get_last_result(connectionObject *conn)
PQclear(result);
}
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) {
break;
}