- Notifications
You must be signed in to change notification settings - Fork28
Commit1f5ca04
committed
Disallow aggregate functions in UPDATE commands (unless within a sub-SELECT).
This is disallowed by the SQL spec because it doesn't have any very sensibleinterpretation. Historically Postgres has allowed it but behaved strangely.As of PG 8.1 a server crash is possible if the MIN/MAX index optimization getsapplied; rather than try to "fix" that, it seems best to just enforce thespec restriction. Per report from Josh Drake and Alvaro Herrera.1 parente256baf commit1f5ca04
1 file changed
+11
-4
lines changedLines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
1613 | 1613 |
| |
1614 | 1614 |
| |
1615 | 1615 |
| |
1616 |
| - | |
| 1616 | + | |
1617 | 1617 |
| |
1618 | 1618 |
| |
1619 | 1619 |
| |
| |||
2346 | 2346 |
| |
2347 | 2347 |
| |
2348 | 2348 |
| |
2349 |
| - | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
2350 | 2355 |
| |
2351 |
| - | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
2352 | 2359 |
| |
2353 | 2360 |
| |
2354 | 2361 |
| |
|
0 commit comments
Comments
(0)