diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-11-05 23:24:27 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-11-05 23:24:27 +0000 |
commit | 593f4b854a8bb384547b8fa9854c73dcd88d4876 (patch) | |
tree | 7df8238f7a7eac1e4afcb11840b1f01e6abd2eb1 /src/backend/parser/parse_utilcmd.c | |
parent | 45d7e04fce5c00b1242787bc0fc150f9ecaf029e (diff) | |
download | postgresql-593f4b854a8bb384547b8fa9854c73dcd88d4876.tar.gz postgresql-593f4b854a8bb384547b8fa9854c73dcd88d4876.zip |
Don't treat NEW and OLD as reserved words anymore. For the purposes of rules
it works just as well to have them be ordinary identifiers, and this gets rid
of a number of ugly special cases. Plus we aren't interfering with non-rule
usage of these names.
catversion bump because the names change internally in stored rules.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
-rw-r--r-- | src/backend/parser/parse_utilcmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index 0398cafc787..0369236ec2a 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -19,7 +19,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/parser/parse_utilcmd.c,v 2.28 2009/10/13 00:53:08 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/parser/parse_utilcmd.c,v 2.29 2009/11/05 23:24:24 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1549,10 +1549,10 @@ transformRuleStmt(RuleStmt *stmt, const char *queryString, * qualification. */ oldrte = addRangeTableEntryForRelation(pstate, rel, - makeAlias("*OLD*", NIL), + makeAlias("old", NIL), false, false); newrte = addRangeTableEntryForRelation(pstate, rel, - makeAlias("*NEW*", NIL), + makeAlias("new", NIL), false, false); /* Must override addRangeTableEntry's default access-check flags */ oldrte->requiredPerms = 0; @@ -1653,10 +1653,10 @@ transformRuleStmt(RuleStmt *stmt, const char *queryString, * them in the joinlist. */ oldrte = addRangeTableEntryForRelation(sub_pstate, rel, - makeAlias("*OLD*", NIL), + makeAlias("old", NIL), false, false); newrte = addRangeTableEntryForRelation(sub_pstate, rel, - makeAlias("*NEW*", NIL), + makeAlias("new", NIL), false, false); oldrte->requiredPerms = 0; newrte->requiredPerms = 0; |