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 buildin function UTC_TIME #3145

Merged
merged 7 commits into from
Apr 26, 2017
Merged

add buildin function UTC_TIME #3145

merged 7 commits into from
Apr 26, 2017

Conversation

lkk2003rty
Copy link
Contributor

Implemented UTC_TIME see here: #236

@CLAassistant
Copy link

CLAassistant commented Apr 25, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@shenli shenli left a comment

Choose a reason for hiding this comment

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

Please also update plan/typeinferer.go.

defer testleak.AfterTest(c)()
tfStr := "15:04:05"

last := time.Now().UTC()
Copy link
Member

Choose a reason for hiding this comment

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

It is better to use a table to drive the test.

return d, errors.Trace(err)
}
}
d.SetString(time.Now().UTC().Format("15:04:05.000000"))
Copy link
Member

Choose a reason for hiding this comment

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

Make "15:04:05.000000" a const.

@hanfei1991 hanfei1991 added the contribution This PR is from a community contributor. label Apr 25, 2017
@shenli
Copy link
Member

shenli commented Apr 26, 2017

LGTM
@coocood @tiancaiamao PTAL

Copy link
Member

@coocood coocood left a comment

Choose a reason for hiding this comment

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

LGTM

@shenli shenli merged commit 4822322 into pingcap:master Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants