mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Adjust handling of command status strings in the presence of rules,
as per recent pghackers discussions. initdb forced due to change in fields of stored Query nodes.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.134 2002/09/22 19:42:51 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.135 2002/10/14 22:14:34 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Most of the read functions for plan nodes are tested. (In fact, they
|
||||
@ -123,6 +123,10 @@ _readQuery(void)
|
||||
token = pg_strtok(&length); /* get commandType */
|
||||
local_node->commandType = atoi(token);
|
||||
|
||||
token = pg_strtok(&length); /* skip :source */
|
||||
token = pg_strtok(&length); /* get querySource */
|
||||
local_node->querySource = atoi(token);
|
||||
|
||||
token = pg_strtok(&length); /* skip :utility */
|
||||
local_node->utilityStmt = nodeRead(true);
|
||||
|
||||
@ -149,9 +153,6 @@ _readQuery(void)
|
||||
token = pg_strtok(&length); /* get hasSubLinks */
|
||||
local_node->hasSubLinks = strtobool(token);
|
||||
|
||||
/* we always want originalQuery to be false in a read-in query */
|
||||
local_node->originalQuery = false;
|
||||
|
||||
token = pg_strtok(&length); /* skip :rtable */
|
||||
local_node->rtable = nodeRead(true);
|
||||
|
||||
@ -188,6 +189,8 @@ _readQuery(void)
|
||||
token = pg_strtok(&length); /* skip :resultRelations */
|
||||
local_node->resultRelations = toIntList(nodeRead(true));
|
||||
|
||||
/* planner-internal fields are left zero */
|
||||
|
||||
return local_node;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user