diff options
Diffstat (limited to 'src/backend/parser/parser.c')
-rw-r--r-- | src/backend/parser/parser.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/backend/parser/parser.c b/src/backend/parser/parser.c index 1535318735c..979f4307fdf 100644 --- a/src/backend/parser/parser.c +++ b/src/backend/parser/parser.c @@ -14,7 +14,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/parser.c,v 1.74 2008/08/29 13:02:32 petere Exp $ + * $PostgreSQL: pgsql/src/backend/parser/parser.c,v 1.75 2008/10/28 14:09:45 petere Exp $ * *------------------------------------------------------------------------- */ @@ -129,28 +129,15 @@ filtered_base_yylex(void) case WITH: /* - * WITH CASCADED, LOCAL, or CHECK must be reduced to one token - * - * XXX an alternative way is to recognize just WITH_TIME and put - * the ugliness into the datetime datatype productions instead of - * WITH CHECK OPTION. However that requires promoting WITH to a - * fully reserved word. If we ever have to do that anyway - * (perhaps for SQL99 recursive queries), come back and simplify - * this code. + * WITH TIME must be reduced to one token */ cur_yylval = base_yylval; cur_yylloc = base_yylloc; next_token = base_yylex(); switch (next_token) { - case CASCADED: - cur_token = WITH_CASCADED; - break; - case LOCAL: - cur_token = WITH_LOCAL; - break; - case CHECK: - cur_token = WITH_CHECK; + case TIME: + cur_token = WITH_TIME; break; default: /* save the lookahead token for next time */ |