forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit30dbdbe
committed
Fix failure to detect some cases of improperly-nested aggregates.
check_agg_arguments_walker() supposed that it needn't descend intothe arguments of a lower-level aggregate function, but this isjust wrong in the presence of multiple levels of sub-select. Theoversight would lead to executor failures on queries that shouldbe rejected. (Prior to v11, they actually were rejected, thanksto a "redundant" execution-time check.)Per bug #17835 from Anban Company. Back-patch to all supportedbranches.Discussion:https://postgr.es/m/17835-4f29f3098b2d0ba4@postgresql.org1 parent9f8377f commit30dbdbe
File tree
3 files changed
+10
-2
lines changed- src
- backend/parser
- test/regress
- expected
- sql
3 files changed
+10
-2
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
736 | 736 |
| |
737 | 737 |
| |
738 | 738 |
| |
739 |
| - | |
740 |
| - | |
| 739 | + | |
741 | 740 |
| |
742 | 741 |
| |
743 | 742 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1282 | 1282 |
| |
1283 | 1283 |
| |
1284 | 1284 |
| |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
1285 | 1291 |
| |
1286 | 1292 |
| |
1287 | 1293 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
439 | 439 |
| |
440 | 440 |
| |
441 | 441 |
| |
| 442 | + | |
| 443 | + | |
| 444 | + | |
442 | 445 |
| |
443 | 446 |
| |
444 | 447 |
| |
|
0 commit comments
Comments
(0)