mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
MOVE implementation.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.24 1997/09/08 21:47:58 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.25 1997/09/29 05:59:16 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -139,7 +139,7 @@ ProcessUtility(Node *parsetree,
|
||||
bool forward;
|
||||
int count;
|
||||
|
||||
commandTag = "FETCH";
|
||||
commandTag = (stmt->ismove) ? "MOVE" : "FETCH";
|
||||
CHECK_IF_ABORTED();
|
||||
|
||||
forward = (bool) (stmt->direction == FORWARD);
|
||||
@ -149,7 +149,8 @@ ProcessUtility(Node *parsetree,
|
||||
*/
|
||||
|
||||
count = stmt->howMany;
|
||||
PerformPortalFetch(portalName, forward, count, commandTag, dest);
|
||||
PerformPortalFetch(portalName, forward, count, commandTag,
|
||||
(stmt->ismove) ? None : dest); /* /dev/null for MOVE */
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user