forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfccf99f
committed
Repair bug #2836: SPI_execute_plan returned zero if none of the querytrees
were marked canSetTag. While it's certainly correct to return the resultof the last one that is marked canSetTag, it's less clear what to do whennone of them are. Since plpgsql will complain if zero is returned, the8.2.0 behavior isn't good. I've fixed it to restore the prior behavior ofreturning the physically last query's result code when there are nocanSetTag queries.1 parent4a836ba commitfccf99f
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1341 | 1341 |
| |
1342 | 1342 |
| |
1343 | 1343 |
| |
| 1344 | + | |
1344 | 1345 |
| |
1345 | 1346 |
| |
1346 | 1347 |
| |
| |||
1396 | 1397 |
| |
1397 | 1398 |
| |
1398 | 1399 |
| |
1399 |
| - | |
1400 | 1400 |
| |
1401 | 1401 |
| |
1402 | 1402 |
| |
| |||
1546 | 1546 |
| |
1547 | 1547 |
| |
1548 | 1548 |
| |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
1549 | 1556 |
| |
1550 | 1557 |
| |
1551 | 1558 |
| |
|
0 commit comments
Comments
(0)