Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f54cc390
Commit
f54cc390
authored
Oct 09, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow TIME in column and table names (SQL/92 non-reserved word).
parent
8bd813d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
src/backend/parser/gram.y
src/backend/parser/gram.y
+18
-3
No files found.
src/backend/parser/gram.y
View file @
f54cc390
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.5
3 1997/09/29 05:58:12 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.5
4 1997/10/09 05:00:54 thomas
Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -2308,9 +2308,8 @@ nest_array_bounds: '[' ']' nest_array_bounds
/*
* typname handles types without trailing parens for size specification.
* Typename uses either typname or explicit txname(size).
* So, must handle
float
in both places. - thomas 1997-09-20
* So, must handle
FLOAT
in both places. - thomas 1997-09-20
*/
typname: txname
{
char *tname;
...
...
@@ -2352,7 +2351,16 @@ typname: txname
}
;
/* Type names
* 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
* - other date/time strings (e.g. YEAR)
* - thomas 1997-10-08
*/
txname: Id { $$ = $1; }
| DateTime { $$ = $1; }
| TIME { $$ = xlateSqlType("time"); }
| INTERVAL interval_opts { $$ = xlateSqlType("interval"); }
| CHARACTER char_type { $$ = $2; }
...
...
@@ -3131,6 +3139,7 @@ class: Id { $$ = $1; };
index_name: Id { $$ = $1; };
name: Id { $$ = $1; }
| DateTime { $$ = $1; }
| TIME { $$ = xlateSqlType("time"); }
;
...
...
@@ -3179,8 +3188,14 @@ Sconst: SCONST { $$ = $1; };
Id: IDENT { $$ = $1; };
/* Column identifier (also used for table identifier)
* Allow date/time names ("year", etc.) (SQL/92 extension).
* Allow TIME (SQL/92 non-reserved word).
* - thomas 1997-10-08
*/
ColId: Id { $$ = $1; }
| DateTime { $$ = $1; }
| TIME { $$ = "time"; }
;
SpecialRuleRelation: CURRENT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment