forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit096e708
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 parent7e31923 commit096e708
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 | |
---|---|---|---|
| |||
728 | 728 |
| |
729 | 729 |
| |
730 | 730 |
| |
731 |
| - | |
732 |
| - | |
| 731 | + | |
733 | 732 |
| |
734 | 733 |
| |
735 | 734 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1248 | 1248 |
| |
1249 | 1249 |
| |
1250 | 1250 |
| |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
1251 | 1257 |
| |
1252 | 1258 |
| |
1253 | 1259 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
419 | 419 |
| |
420 | 420 |
| |
421 | 421 |
| |
| 422 | + | |
| 423 | + | |
| 424 | + | |
422 | 425 |
| |
423 | 426 |
| |
424 | 427 |
| |
|
0 commit comments
Comments
(0)