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
With MySQL
mysql> select JSON_EXTRACT('{"id":234}', '$.id')-1; +--------------------------------------+ | JSON_EXTRACT('{"id":234}', '$.id')-1 | +--------------------------------------+ | 233 | +--------------------------------------+ 1 row in set (0.00 sec) mysql> select JSON_EXTRACT('{"id":234}', '$.id') = 234; +------------------------------------------+ | JSON_EXTRACT('{"id":234}', '$.id') = 234 | +------------------------------------------+ | 1 | +------------------------------------------+ 1 row in set (0.00 sec)
With go-mysql-server
MySQL [(none)]> select JSON_EXTRACT('{"id":234}', '$.id')-1; ERROR 1105 (HY000): unable to cast sql.JSONDocument{Val:234} of type sql.JSONDocument to float64 MySQL [(none)]> select JSON_EXTRACT('{"id":234}', '$.id') = 234; +------------------------------------------+ | JSON_EXTRACT('{"id":234}', '$.id') = 234 | +------------------------------------------+ | 0 | +------------------------------------------+ 1 row in set (0.002 sec)```
The text was updated successfully, but these errors were encountered:
fixed by #503
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
With MySQL
With go-mysql-server
The text was updated successfully, but these errors were encountered: