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

Support UTC_TIMESTAMP() #167

Closed
tooolbox opened this issue Aug 19, 2020 · 4 comments
Closed

Support UTC_TIMESTAMP() #167

tooolbox opened this issue Aug 19, 2020 · 4 comments
Assignees

Comments

@tooolbox
Copy link
Contributor

Looking at using this project for unit-testing purposes; very nice to have an in-memory Mysql database!

It's good to have NOW() support but I do need UTC_TIMESTAMP() as well. Is this something on the agenda soon, or should I dive in and figure out a PR?

Thanks 👍

@zachmu
Copy link
Member

zachmu commented Aug 20, 2020

Hi @tooolbox ,

We don't have any immediate plans to implement UTC_TIMESTAMP, but dive in! It is pretty simple to add new functions. Start with this file:

https://github.com/liquidata-inc/go-mysql-server/blob/master/sql/expression/function/registry.go

Let us know if you have any questions!

@tooolbox
Copy link
Contributor Author

Great, thanks for the info. I turned out to not need this right this split instant, so I'm going to close this so the issue doesn't hang around, but I know what to do now once the time arises.

@zachmu
Copy link
Member

zachmu commented Sep 1, 2020

Dustin is going to tackle this today

@zachmu
Copy link
Member

zachmu commented Sep 10, 2020

This is now in master. Let us know if you find any issues.

@zachmu zachmu closed this as completed Sep 10, 2020
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

No branches or pull requests

3 participants