mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +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:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.153 2002/02/24 20:20:21 tgl Exp $
|
||||
* $Id: parsenodes.h,v 1.154 2002/02/26 22:47:10 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -48,6 +48,8 @@ typedef struct Query
|
||||
bool hasAggs; /* has aggregates in tlist or havingQual */
|
||||
bool hasSubLinks; /* has subquery SubLink */
|
||||
|
||||
bool originalQuery; /* marks original query through rewriting */
|
||||
|
||||
List *rtable; /* list of range table entries */
|
||||
FromExpr *jointree; /* table join tree (FROM and WHERE
|
||||
* clauses) */
|
||||
|
||||
Reference in New Issue
Block a user