We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MySQL will trim leading and trailing space(' ') and tab ('\t') characters when casting from a string to a numeric type.
' '
'\t'
mysql> select cast('\t 123 \t\t' as signed); +------------------------------------+ | cast('\t 123 \t\t' as signed) | +------------------------------------+ | 123 | +------------------------------------+ 1 row in set (0.0004 sec)
Oddly, MySQL will not trim NUL ('\0') or new line ('\n') characters.
'\0'
'\n'
mysql> select cast('\0123' as signed); +-------------------------+ | cast('\0123' as signed) | +-------------------------+ | 0 | +-------------------------+ 1 row in set, 1 warning (0.0004 sec) Warning (code 1292): Truncated incorrect INTEGER value: ''
mysql> select cast('\n123' as signed); +-------------------------+ | cast('\n123' as signed) | +-------------------------+ | 0 | +-------------------------+ 1 row in set, 1 warning (0.0004 sec) Warning (code 1292): Truncated incorrect INTEGER value: ' 123'
Currently, dolt does not trim any of these.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
MySQL will trim leading and trailing space(
' '
) and tab ('\t'
) characters when casting from a string to a numeric type.Oddly, MySQL will not trim NUL (
'\0'
) or new line ('\n'
) characters.Currently, dolt does not trim any of these.
The text was updated successfully, but these errors were encountered: