forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6306d07
committed
Re-enable error for "SELECT ... OFFSET -1".
The executor has thrown errors for negative OFFSET values since 8.4 (seecommitbfce56e), but in a moment of brainfade I taught the planner that OFFSET with a constant negative value was ano-op (commit1a1832e). Reinstate theformer behavior by only discarding OFFSET with a value of exactly 0. Inpassing, adjust a planner comment that referenced the ancient behavior.Back-patch to 9.3 where the mistake was introduced.1 parentf59c8ef commit6306d07
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2127 | 2127 |
| |
2128 | 2128 |
| |
2129 | 2129 |
| |
2130 |
| - | |
| 2130 | + | |
2131 | 2131 |
| |
2132 | 2132 |
| |
2133 | 2133 |
| |
| |||
2288 | 2288 |
| |
2289 | 2289 |
| |
2290 | 2290 |
| |
2291 |
| - | |
2292 |
| - | |
2293 |
| - | |
| 2291 | + | |
| 2292 | + | |
2294 | 2293 |
| |
2295 | 2294 |
| |
2296 | 2295 |
| |
|
0 commit comments
Comments
(0)