mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Restructure command-completion-report code so that there is just one
report for each received SQL command, regardless of rewriting activity. Also ensure that this report comes from the 'original' command, not the last command generated by rewrite; this fixes 7.2 breakage for INSERT commands that have actions added by rules. Fernando Nasser and Tom Lane.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.113 2001/10/25 05:49:31 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.114 2002/02/26 22:47:07 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Most of the read functions for plan nodes are tested. (In fact, they
|
||||
@ -168,6 +168,9 @@ _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);
|
||||
|
||||
|
Reference in New Issue
Block a user