-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
support time function #236
Comments
Is there any test code which could be used to test these time functions? If someone adds support for a time funtion, how to make sure the newly added function is working? |
@hhkbp2 Yes, there are some basic tests: Some corner tests: Results of those above tests: |
@ngaut The tests for mysql would be some good reference. I'm looking for some test codes like unit tests in TiDB to test these time functions, so that newly added time functions could be tested before submitted to the main branch. |
@hhkbp2 You can refer to https://github.com/pingcap/tidb/tree/master/expression/builtin/time_test.go |
see issue: pingcap#236.
* evaluator, parser: support UTC_DATE() Fix issue: #236.
May I suggest that The current lack of both |
This is a good suggestion and we'll support it soon. |
@shlomi-noach unix_timestamp() is already supported. Please try the latest master. |
@shenli thank you -- |
omnidb can be handy, but it fails to login tidb because it executes a |
@shenli Not at all, I will do it later. |
@zyguan Great! |
@kaiwu UTC_TIMESTAMP has been supported by the latest master, please try it. Thanks. |
already supported |
http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html
The text was updated successfully, but these errors were encountered: