mirror of
https://github.com/postgres/postgres.git
synced 2025-05-18 17:41:14 +03:00
Back-patch fix for a typo that unintentionally disabled backward scans
for all SPI-created cursors.
This commit is contained in:
parent
d60b1f5689
commit
6d28a8fee9
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.107 2003/10/01 21:30:52 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.107.2.1 2005/02/10 20:37:15 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -841,7 +841,7 @@ SPI_cursor_open(const char *name, void *plan, Datum *Values, const char *Nulls)
|
|||||||
* Set up options for portal.
|
* Set up options for portal.
|
||||||
*/
|
*/
|
||||||
portal->cursorOptions &= ~(CURSOR_OPT_SCROLL | CURSOR_OPT_NO_SCROLL);
|
portal->cursorOptions &= ~(CURSOR_OPT_SCROLL | CURSOR_OPT_NO_SCROLL);
|
||||||
if (ExecSupportsBackwardScan(plan))
|
if (ExecSupportsBackwardScan(planTree))
|
||||||
portal->cursorOptions |= CURSOR_OPT_SCROLL;
|
portal->cursorOptions |= CURSOR_OPT_SCROLL;
|
||||||
else
|
else
|
||||||
portal->cursorOptions |= CURSOR_OPT_NO_SCROLL;
|
portal->cursorOptions |= CURSOR_OPT_NO_SCROLL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user