forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd2cba4f
committed
Doc: improve description of plpgsql's FETCH and MOVE commands.
We were not being clear about which variants of the "direction"clause are permitted in MOVE. Also, the text seemed to bewritten with only the FETCH/MOVE NEXT case in mind, so itdidn't apply very well to other variants.Also, document that "MOVE count IN cursor" only works if countis a constant. This is not the whole truth, because some othercases such as a parenthesized expression will also work, butwe want to push people to use "MOVE FORWARD count" instead.The constant case is enough to cover what we allow in plain SQL,and that seems sufficient to claim support for.Update a comment in pl_gram.y claiming that we don't documentthat point.Per gripe from Philipp Salvisberg.Discussion:https://postgr.es/m/172155553388.702.7932496598218792085@wrigleys.postgresql.org1 parentefcbb76 commitd2cba4f
2 files changed
+28
-11
lines changedLines changed: 23 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3409 | 3409 |
| |
3410 | 3410 |
| |
3411 | 3411 |
| |
3412 |
| - | |
| 3412 | + | |
| 3413 | + | |
3413 | 3414 |
| |
3414 | 3415 |
| |
3415 |
| - | |
| 3416 | + | |
3416 | 3417 |
| |
3417 | 3418 |
| |
3418 |
| - | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
3419 | 3422 |
| |
3420 | 3423 |
| |
3421 | 3424 |
| |
| |||
3467 | 3470 |
| |
3468 | 3471 |
| |
3469 | 3472 |
| |
3470 |
| - | |
| 3473 | + | |
3471 | 3474 |
| |
3472 |
| - | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
3473 | 3488 |
| |
3474 |
| - | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
3475 | 3492 |
| |
3476 | 3493 |
| |
3477 | 3494 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3219 | 3219 |
| |
3220 | 3220 |
| |
3221 | 3221 |
| |
3222 |
| - | |
3223 |
| - | |
3224 |
| - | |
3225 |
| - | |
3226 |
| - | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
3227 | 3227 |
| |
3228 | 3228 |
| |
3229 | 3229 |
| |
|
0 commit comments
Comments
(0)