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
e97fe98c
Commit
e97fe98c
authored
Oct 22, 2001
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
synced preproc.y with gram.y
parent
6ec5eaad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
18 deletions
+47
-18
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+43
-18
No files found.
src/interfaces/ecpg/ChangeLog
View file @
e97fe98c
...
...
@@ -1138,5 +1138,9 @@ Thu Oct 18 12:57:04 CEST 2001
Fri Oct 19 16:32:06 CEST 2001
- Removed "not yet fully implemented" warnig for nullif.
Sun Oct 21 14:19:42 CEST 2001
- Synced preproc.y with gram.y.
- Set ecpg version to 2.9.0.
- Set library version to 3.3.0.
src/interfaces/ecpg/preproc/preproc.y
View file @
e97fe98c
...
...
@@ -833,7 +833,21 @@ opt_boolean: TRUE_P { $$ = make_str("true"); }
| OFF { $$ = make_str("off"); }
;
/* Timezone values can be:
* - a string such as 'pst8pdt'
* - an integer or floating point number
* - a time interval per SQL99
*/
zone_value: StringConst { $$ = $1; }
| ConstInterval StringConst opt_interval
{
$$ = cat_str(3, $1, $2, $3);
}
| ConstInterval '(' PosIntConst ')' StringConst opt_interval
{
$$ = cat_str(6, $1, make_str("("), $3, make_str(")"), $5, $6);
}
| NumConst { $$ = $1; }
| DEFAULT { $$ = make_str("default"); }
| LOCAL { $$ = make_str("local"); }
;
...
...
@@ -844,7 +858,7 @@ opt_encoding: StringConst { $$ = $1; }
;
ColId_or_Sconst: ColId { $$ = $1; }
| S
CONST
{ $$ = $1; }
| S
tringConst
{ $$ = $1; }
;
VariableShowStmt: SHOW ColId
...
...
@@ -2951,7 +2965,8 @@ Iresult: PosIntConst { $$ = atol($1); }
;
SimpleTypename: ConstTypename { $$ = $1; }
| ConstInterval { $$ = $1; }
| ConstInterval opt_interval { $$ = cat2_str($1, $2); }
| ConstInterval '(' PosIntConst ')' opt_interval { $$ = cat_str(5, $1, make_str("("), $3, make_str(")"), $5); }
;
ConstTypename: Generic { $$ = $1; }
...
...
@@ -3120,9 +3135,9 @@ ConstDatetime: datetime
}
;
ConstInterval: INTERVAL
opt_interval
ConstInterval: INTERVAL
{
$$ =
cat2_str(make_str("interval"), $2
);
$$ =
make_str("interval"
);
}
;
...
...
@@ -3139,8 +3154,13 @@ opt_timezone: WITH TIME ZONE { $$ = make_str("with time zone"); }
| /*EMPTY*/ { $$ = EMPTY; }
;
opt_interval: datetime { $$ = $1; }
| YEAR_P TO MONTH_P { $$ = make_str("year to #month"); }
opt_interval: YEAR_P { $$ = make_str("year"); }
| MONTH_P { $$ = make_str("month"); }
| DAY_P { $$ = make_str("day"); }
| HOUR_P { $$ = make_str("hour"); }
| MINUTE_P { $$ = make_str("minute"); }
| SECOND_P { $$ = make_str("second"); }
| YEAR_P TO MONTH_P { $$ = make_str("year to month"); }
| DAY_P TO HOUR_P { $$ = make_str("day to hour"); }
| DAY_P TO MINUTE_P { $$ = make_str("day to minute"); }
| DAY_P TO SECOND_P { $$ = make_str("day to second"); }
...
...
@@ -3523,7 +3543,7 @@ extract_list: extract_arg FROM a_expr
*/
extract_arg: datetime { $$ = $1; }
| S
CONST
{ $$ = $1; }
| S
tringConst
{ $$ = $1; }
| IDENT { $$ = $1; }
;
...
...
@@ -3761,6 +3781,10 @@ AexprConst: PosAllConst
{
$$ = cat_str(3, $1, $2, $3);
}
| ConstInterval '(' PosIntConst ')' StringConst opt_interval
{
$$ = cat_str(6, $1, make_str("("), $3, make_str(")"), $5, $6);
}
| ParamNo
{ $$ = $1; }
| TRUE_P
...
...
@@ -5081,7 +5105,6 @@ ECPGColId: ident { $$ = $1; }
| TYPE_P { $$ = make_str("type"); }
| datetime { $$ = $1; }
| TokenId { $$ = $1; }
| INTERVAL { $$ = make_str("interval"); }
| NATIONAL { $$ = make_str("national"); }
| NONE { $$ = make_str("none"); }
| PATH_P { $$ = make_str("path_p"); }
...
...
@@ -5140,11 +5163,13 @@ ECPGColLabel: ECPGColId { $$ = $1; }
| GROUP { $$ = make_str("group"); }
| HAVING { $$ = make_str("having"); }
| ILIKE { $$ = make_str("ilike"); }
| IN { $$ = make_str("in"); }
| INITIALLY { $$ = make_str("initially"); }
| INNER_P { $$ = make_str("inner"); }
| INOUT { $$ = make_str("inout"); }
| INTERSECT { $$ = make_str("intersect"); }
| INTERVAL { $$ = make_str("interval"); }
| INTO { $$ = make_str("into"); }
| INOUT { $$ = make_str("inout"); }
| JOIN { $$ = make_str("join"); }
| LEADING { $$ = make_str("leading"); }
| LEFT { $$ = make_str("left"); }
...
...
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