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
7249562f
Commit
7249562f
authored
Oct 08, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant code, update comments, cause CURRENT_TIME to
agree with CURRENT_TIME(n).
parent
c7c280f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
src/backend/parser/gram.y
src/backend/parser/gram.y
+5
-10
No files found.
src/backend/parser/gram.y
View file @
7249562f
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.2
59 2001/10/05 06:37:42 thomas
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.2
60 2001/10/08 18:16:59 tgl
Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -4921,7 +4921,6 @@ c_expr: attr
t->setof = FALSE;
t->typmod = -1;
d = makeNode(TypeName);
d->name = xlateSqlType("date");
d->setof = FALSE;
d->typmod = -1;
...
...
@@ -4931,7 +4930,7 @@ c_expr: attr
| CURRENT_TIME
{
/*
* Translate as "time('now'::text)".
* Translate as "time
tz
('now'::text)".
* See comments for CURRENT_DATE.
*/
A_Const *s = makeNode(A_Const);
...
...
@@ -4946,8 +4945,7 @@ c_expr: attr
t->setof = FALSE;
t->typmod = -1;
d = makeNode(TypeName);
d->name = xlateSqlType("time");
d->name = xlateSqlType("timetz");
d->setof = FALSE;
d->typmod = 0;
...
...
@@ -4956,7 +4954,7 @@ c_expr: attr
| CURRENT_TIME '(' Iconst ')'
{
/*
* Translate as "time('now'::text)".
* Translate as "time
tz
('now'::text)".
* See comments for CURRENT_DATE.
*/
A_Const *s = makeNode(A_Const);
...
...
@@ -4971,7 +4969,6 @@ c_expr: attr
t->setof = FALSE;
t->typmod = -1;
d = makeNode(TypeName);
d->name = xlateSqlType("timetz");
d->setof = FALSE;
if (($3 < 0) || ($3 > 13))
...
...
@@ -5002,7 +4999,6 @@ c_expr: attr
/* SQL99 mandates a default precision of 6
* for timestamp. - thomas 2001-10-04
*/
d = makeNode(TypeName);
d->name = xlateSqlType("timestamptz");
d->setof = FALSE;
d->typmod = 6;
...
...
@@ -5012,7 +5008,7 @@ c_expr: attr
| CURRENT_TIMESTAMP '(' Iconst ')'
{
/*
* Translate as "timestamp('now'::text)".
* Translate as "timestamp
tz
('now'::text)".
* See comments for CURRENT_DATE.
*/
A_Const *s = makeNode(A_Const);
...
...
@@ -5027,7 +5023,6 @@ c_expr: attr
t->setof = FALSE;
t->typmod = -1;
d = makeNode(TypeName);
d->name = xlateSqlType("timestamptz");
d->setof = FALSE;
if (($3 < 0) || ($3 > 13))
...
...
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