Skip to content

Commit e40cc86

Browse files
authored
Refactremoved status -99 which can not occure in the current version of the code
Removed early return for async status check and related error handling.
1 parent c304c8e commit e40cc86

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

dbdimp.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5312,14 +5312,6 @@ long pg_db_result (SV *h, imp_dbh_t *imp_dbh)
53125312
/* Don't return early - let the full processing happen below */
53135313
}
53145314

5315-
if (imp_sth && imp_sth->async_status == -99) {
5316-
pg_error(aTHX_ h, PGRES_FATAL_ERROR,
5317-
"Results for this query were discarded by PG_OLDQUERY_WAIT. "
5318-
"To preserve results, call pg_result() before executing another async query.\n");
5319-
if (TEND_slow) TRC(DBILOGFP, "%sEnd pg_db_result (error: results discarded)\n", THEADER_slow);
5320-
return -2;
5321-
}
5322-
53235315
/* Skip async status check for auto-retrieved results and errors */
53245316
if (1 != imp_dbh->async_status && !(imp_sth && (imp_sth->async_status == 100 || imp_sth->async_status == -1))) {
53255317
pg_error(aTHX_ h, PGRES_FATAL_ERROR, "No asynchronous query is running\n");

0 commit comments

Comments
 (0)