Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: add builtin function UTC_TIMESTAMP #2592

Merged
merged 3 commits into from
Feb 5, 2017

Conversation

zyguan
Copy link
Contributor

@zyguan zyguan commented Feb 4, 2017

Hi, @shenli @hanfei1991 @tiancaiamao !
I just added the UTC_TIMESTAMP function, PTAL :)

@shenli
Copy link
Member

shenli commented Feb 5, 2017

@zyguan Good job!
@tiancaiamao @XuHuaiyu PTAL

@@ -584,6 +584,11 @@ func (s *testParserSuite) TestBuiltin(c *C) {
{"select curtime()", true},
{"select curtime(6)", true},

// select utc_timestamp
{"select utc_timestamp", false},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is valid in mysql:
mysql> select utc_timestamp;
+---------------------+
| utc_timestamp |
+---------------------+
| 2017-02-05 02:10:07 |
+---------------------+
1 row in set (0.01 sec)

@tiancaiamao
Copy link
Contributor

LGTM

@coocood
Copy link
Member

coocood commented Feb 5, 2017

LGTM
@zyguan
Thank you!
Please resolve conflict.

@ngaut ngaut merged commit 395a9c6 into pingcap:master Feb 5, 2017
@ngaut
Copy link
Member

ngaut commented Feb 5, 2017

Good job! @zyguan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants