diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-10-14 22:14:35 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-10-14 22:14:35 +0000 |
commit | d508b057ac0834eb6ea83b10ba9fd6c439b454a4 (patch) | |
tree | c100e9e56c25d3f6f57cd2be986b294258665a36 /src/backend/parser/analyze.c | |
parent | ea3728ee5b60ee479caa865590d14f71f612dcdb (diff) | |
download | postgresql-d508b057ac0834eb6ea83b10ba9fd6c439b454a4.tar.gz postgresql-d508b057ac0834eb6ea83b10ba9fd6c439b454a4.zip |
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.
Diffstat (limited to 'src/backend/parser/analyze.c')
-rw-r--r-- | src/backend/parser/analyze.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index fe058125a04..2dcaadc177f 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.250 2002/09/22 00:37:09 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.251 2002/10/14 22:14:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -164,13 +164,13 @@ parse_analyze(Node *parseTree, ParseState *parentParseState) /* * Make sure that only the original query is marked original. We have * to do this explicitly since recursive calls of parse_analyze will - * have set originalQuery in some of the added-on queries. + * have marked some of the added-on queries as "original". */ foreach(listscan, result) { Query *q = lfirst(listscan); - q->originalQuery = (q == query); + q->querySource = (q == query ? QSRC_ORIGINAL : QSRC_PARSER); } pfree(pstate); |