|
10 | 10 | *
|
11 | 11 | *
|
12 | 12 | * IDENTIFICATION
|
13 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.54 1997/10/09 05:00:54 thomas Exp $ |
| 13 | + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.55 1997/10/09 05:35:30 thomas Exp $ |
14 | 14 | *
|
15 | 15 | * HISTORY
|
16 | 16 | * AUTHOR DATE MAJOR EVENT
|
@@ -2355,13 +2355,14 @@ typname: txname
|
2355 | 2355 | * Allow the following parsing categories:
|
2356 | 2356 | * - strings which are not keywords (Id)
|
2357 | 2357 | * - some explicit SQL/92 data types (e.g. DOUBLE PRECISION)
|
2358 |
| - * - TIME as an SQL/92 non-reserved word, but parser keyword |
| 2358 | + * - TYPE as an SQL/92 non-reserved word, but parser keyword |
2359 | 2359 | * - other date/time strings (e.g. YEAR)
|
2360 | 2360 | * - thomas 1997-10-08
|
2361 | 2361 | */
|
2362 | 2362 | txname: Id { $$ = $1; }
|
2363 | 2363 | | DateTime { $$ = $1; }
|
2364 | 2364 | | TIME { $$ = xlateSqlType("time"); }
|
| 2365 | + | TYPE_P { $$ = xlateSqlType("type"); } |
2365 | 2366 | | INTERVAL interval_opts { $$ = xlateSqlType("interval"); }
|
2366 | 2367 | | CHARACTER char_type { $$ = $2; }
|
2367 | 2368 | | DOUBLE PRECISION { $$ = xlateSqlType("float8"); }
|
@@ -3141,6 +3142,7 @@ index_name: Id { $$ = $1; };
|
3141 | 3142 | name: Id { $$ = $1; }
|
3142 | 3143 | | DateTime { $$ = $1; }
|
3143 | 3144 | | TIME { $$ = xlateSqlType("time"); }
|
| 3145 | + | TYPE_P { $$ = xlateSqlType("type"); } |
3144 | 3146 | ;
|
3145 | 3147 |
|
3146 | 3148 | date: Sconst { $$ = $1; };
|
@@ -3190,12 +3192,13 @@ Id: IDENT { $$ = $1; };
|
3190 | 3192 |
|
3191 | 3193 | /* Column identifier (also used for table identifier)
|
3192 | 3194 | * Allow date/time names ("year", etc.) (SQL/92 extension).
|
3193 |
| - * Allow TIME (SQL/92 non-reserved word). |
| 3195 | + * Allow TYPE (SQL/92 non-reserved word). |
3194 | 3196 | * - thomas 1997-10-08
|
3195 | 3197 | */
|
3196 | 3198 | ColId: Id { $$ = $1; }
|
3197 | 3199 | | DateTime { $$ = $1; }
|
3198 | 3200 | | TIME { $$ = "time"; }
|
| 3201 | + | TYPE_P { $$ = "type"; } |
3199 | 3202 | ;
|
3200 | 3203 |
|
3201 | 3204 | SpecialRuleRelation: CURRENT
|
|
0 commit comments