*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.54 1997/10/09 05:00:54 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.55 1997/10/09 05:35:30 thomas Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
* Allow the following parsing categories:
* - strings which are not keywords (Id)
* - some explicit SQL/92 data types (e.g. DOUBLE PRECISION)
- * - TIME as an SQL/92 non-reserved word, but parser keyword
+ * - TYPE as an SQL/92 non-reserved word, but parser keyword
* - other date/time strings (e.g. YEAR)
* - thomas 1997-10-08
*/
txname: Id { $$ = $1; }
| DateTime { $$ = $1; }
| TIME { $$ = xlateSqlType("time"); }
+ | TYPE_P { $$ = xlateSqlType("type"); }
| INTERVAL interval_opts { $$ = xlateSqlType("interval"); }
| CHARACTER char_type { $$ = $2; }
| DOUBLE PRECISION { $$ = xlateSqlType("float8"); }
name: Id { $$ = $1; }
| DateTime { $$ = $1; }
| TIME { $$ = xlateSqlType("time"); }
+ | TYPE_P { $$ = xlateSqlType("type"); }
;
date: Sconst { $$ = $1; };
/* Column identifier (also used for table identifier)
* Allow date/time names ("year", etc.) (SQL/92 extension).
- * Allow TIME (SQL/92 non-reserved word).
+ * Allow TYPE (SQL/92 non-reserved word).
* - thomas 1997-10-08
*/
ColId: Id { $$ = $1; }
| DateTime { $$ = $1; }
| TIME { $$ = "time"; }
+ | TYPE_P { $$ = "type"; }
;
SpecialRuleRelation: CURRENT