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

MDEV-27990: Incorrect behavior of JSON_OVERLAPS() on warning

Analysis: In case of error while processing json document, we goto
error label which eventually return 1 instead of 0.
Fix: Return 0 in case of error instead of 1.
This commit is contained in:
Rucha Deodhar
2022-03-03 14:40:55 +05:30
parent a653dde279
commit 12abe61af4
3 changed files with 8 additions and 2 deletions

View File

@ -1084,6 +1084,7 @@ SELECT JSON_OVERLAPS('[1,2,{"A":B}]', '{"A":B}', '{"C":"string1"}');
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT JSON_OVERLAPS('[1,2,{"A":B}]');
SELECT JSON_OVERLAPS('','');
SELECT JSON_OVERLAPS('true','tr');
--echo #
--echo # End of 10.9 test