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

builtin: add maketime built-in function #2889

Merged
merged 3 commits into from
Mar 25, 2017
Merged

Conversation

cosmtrek
Copy link
Contributor

Add MAKETIME(hour, minute, second) built-in function

        modified:   expression/builtin_time.go
        modified:   expression/builtin_time_test.go
        modified:   plan/typeinferer.go
        modified:   plan/typeinferer_test.go
@coocood coocood added the contribution This PR is from a community contributor. label Mar 20, 2017
return d, nil
}

var hour int64
Copy link
Member

Choose a reason for hiding this comment

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

var (
hour int64
minute int64
second float64
overflow bool
)

@tiancaiamao
Copy link
Contributor

Good job! @cosmtrek
LGTM

@tiancaiamao tiancaiamao added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 23, 2017
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

@coocood coocood merged commit 277893a into pingcap:master Mar 25, 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. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants