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:
@ -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
|
||||
|
Reference in New Issue
Block a user