1
0
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:
Tom Lane 2005-02-10 20:37:15 +00:00
parent d60b1f5689
commit 6d28a8fee9

View File

@ -8,7 +8,7 @@
*
*
* 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.
*/
portal->cursorOptions &= ~(CURSOR_OPT_SCROLL | CURSOR_OPT_NO_SCROLL);
if (ExecSupportsBackwardScan(plan))
if (ExecSupportsBackwardScan(planTree))
portal->cursorOptions |= CURSOR_OPT_SCROLL;
else
portal->cursorOptions |= CURSOR_OPT_NO_SCROLL;