1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

MDEV-15561 json_extract returns NULL with numbers in scientific notation.

Scientific notation handling fixed.

Conflicts:
	mysql-test/r/func_json.result
	mysql-test/t/func_json.test
This commit is contained in:
Alexey Botchkov
2018-03-25 00:15:11 +04:00
parent 843b414891
commit ad647cc84e
4 changed files with 21 additions and 32 deletions

View File

@@ -391,6 +391,12 @@ insert into t1 values (2),(1);
select 1 from t1 where json_extract(a,'$','$[81]');
drop table t1;
#
# MDEV-15561 json_extract returns NULL with numbers in scientific notation.
#
select json_extract('{"test":8.437e-5}','$.test');
--echo #
--echo # Start of 10.3 tests
--echo #