-
-
Notifications
You must be signed in to change notification settings - Fork 231
Support OCT() function and fix CONV() mishandling of negative floats and empty string N #3020
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
Conversation
…reated being handled as positive ints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add a few simple engine tests in gms/enginetest/queries/queries.go
in the QueryTests
slice. Something like:
{
Query: "select ord(i) from mytable",
Expected: []sql.Row{...},
},
These can be run from gms/enginetest/memory_engine_test.go
function TestQueriesSimple()
Co-authored-by: James Cor <jcor@ucsd.edu>
…db/9325-support-oct-function
@jycor I've completed the suggested changes, and added the test let me know if there anything else to do. Otherwise, I'll merge. |
…db/9325-support-oct-function
MySQL Docs: https://dev.mysql.com/doc/refman/8.4/en/string-functions.html#function_oct