-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
REGEXP '^[-]?[0-9]+$' fails on int64 column. #1055
Comments
Goal is 100% MySQL compatibility. Thanks for the bug report. We'll get on it. |
Hi @joel-rieke, thanks for the report. We'd love to learn about your use case too. Feel free to share here, email me(brianf@dolthub.com), or come by our Discord. |
Thanks for reporting this one @joel-rieke ! The fix was merged in on Friday and released in Dolt 0.40.9. Please let us know if you find any other issues. |
Tested the change in our project and it fixes the problem we were having. Thanks for looking into this! |
I know this sounds crazy to run a regex on a BIGINT column, however, when I do so in mysql, it works fine. Notice this regex will match every number in a BIGINT, so kind of pointless. However, running this regex against a BIGINT in go-mysql-server returns no matches.
Another regex that works in mysql to return a result:
'^[-]?2[0-9]+$'
But on go-mysql-server, no results for the same dataset.
In the interest of compatibility with mysql, perhaps it would be nice to support REGEX on int64 columns?
The text was updated successfully, but these errors were encountered: