forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit169d50b
committed
postgres_fdw: Fix bug in checking of return value of PQsendQuery().
When postgres_fdw begins an asynchronous data fetch, it submits FETCH queryby using PQsendQuery(). If PQsendQuery() fails and returns 0, postgres_fdwshould report an error. But, previously, postgres_fdw reported an erroronly when the return value is less than 0, though PQsendQuery() never returnthe values other than 0 and 1. Therefore postgres_fdw could not handlethe failure to send FETCH query in an asynchronous data fetch.This commit fixes postgres_fdw so that it reports an errorwhen PQsendQuery() returns 0.Back-patch to v14 where asynchronous execution was supported in postgres_fdw.Author: Fujii MasaoReviewed-by: Japin Li, Tom LaneDiscussion:https://postgr.es/m/b187a7cf-d4e3-5a32-4d01-8383677797f3@oss.nttdata.com1 parente613466 commit169d50b
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7082 | 7082 |
| |
7083 | 7083 |
| |
7084 | 7084 |
| |
7085 |
| - | |
| 7085 | + | |
7086 | 7086 |
| |
7087 | 7087 |
| |
7088 | 7088 |
| |
|
0 commit comments
Comments
(0)