1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

MOVE implementation.

This commit is contained in:
Vadim B. Mikheev
1997-09-29 05:59:16 +00:00
parent 4b9fb26648
commit 5a447b4a26
3 changed files with 29 additions and 49 deletions

View File

@ -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;