mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Parser Overhaul
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.2 1996/08/28 07:16:17 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.3 1996/10/30 02:01:45 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -690,10 +690,12 @@ tg_parseTeeNode(TgRecipe *r,
|
||||
same Tee. */
|
||||
if (rt_ind == 0) {
|
||||
orig->rtable = lappend(orig->rtable,
|
||||
makeRangeTableEntry(tt,
|
||||
addRangeTableEntry(NULL,
|
||||
tt,
|
||||
tt,
|
||||
FALSE,
|
||||
NULL,
|
||||
tt));
|
||||
FALSE,
|
||||
NULL));
|
||||
rt_ind = length(orig->rtable);
|
||||
}
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.1.1.1 1996/07/09 06:21:22 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.2 1996/10/30 02:01:47 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -235,9 +235,11 @@ UpdateRangeTableOfViewParse(char *viewName, Query *viewParse)
|
||||
* CURRENT first, then NEW....
|
||||
*/
|
||||
rt_entry1 =
|
||||
makeRangeTableEntry((char*)viewName, FALSE, NULL, "*CURRENT*");
|
||||
addRangeTableEntry(NULL, (char*)viewName, "*CURRENT*",
|
||||
FALSE, FALSE, NULL);
|
||||
rt_entry2 =
|
||||
makeRangeTableEntry((char*)viewName, FALSE, NULL, "*NEW*");
|
||||
addRangeTableEntry(NULL, (char*)viewName, "*NEW*",
|
||||
FALSE, FALSE, NULL);
|
||||
new_rt = lcons(rt_entry2, old_rt);
|
||||
new_rt = lcons(rt_entry1, new_rt);
|
||||
|
||||
|
Reference in New Issue
Block a user