Cause FETCH 1 to return the current cursor row, or zero if at
Bruce Momjian <bruce@momjian.us>
Cause FETCH 1 to return the current cursor row, or zero if at beginning/end of cursor. Have MOVE return 0/1 depending on cursor position. Matches SQL spec. Pass cursor counter from parser as a long rather than int. Doc updates.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/fetch.sgml | modified | +2 −26 |
| doc/src/sgml/ref/move.sgml | modified | +3 −3 |
| src/backend/commands/portalcmds.c | modified | +40 −6 |
| src/backend/parser/gram.y | modified | +5 −16 |
| src/backend/tcop/utility.c | modified | +2 −2 |
| src/include/commands/portalcmds.h | modified | +2 −2 |
| src/include/nodes/parsenodes.h | modified | +2 −2 |