Process all data in the buffer before receiving additional data from the socket

v2.x_pg_PrepStmtBase_240714
Rahim Kanji 2 years ago
parent ba07643f18
commit de20402c10

@ -2132,6 +2132,12 @@ void PgSQL_Connection::fetch_result_cont(short event) {
if (pgsql_result)
return;
// we already have data available in buffer
if (PQisBusy(pgsql_conn) == 0) {
pgsql_result = PQgetResult(pgsql_conn);
return;
}
if (PQconsumeInput(pgsql_conn) == 0) {
// WARNING: DO NOT RELEASE this PGresult
const PGresult* result = PQgetResultFromPGconn(pgsql_conn);

Loading…
Cancel
Save