1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-15905 select json_value('{"b":true}','$.b')=1 --> false with

"Truncated incorrect DOUBLE value: 'true'".

JSON_VALUE_TRUE and JSON_VALUE_FALSE should be handled specifically
in Item_json_value.
This commit is contained in:
Alexey Botchkov
2018-06-17 17:15:21 +04:00
parent b8514c94f6
commit 352c7e0dfa
3 changed files with 30 additions and 1 deletions

View File

@ -739,3 +739,6 @@ drop table t1;
select json_extract('{"test":8.437e-5}','$.test');
json_extract('{"test":8.437e-5}','$.test')
8.437e-5
select json_value('{"b":true}','$.b')=1;
json_value('{"b":true}','$.b')=1
1