diff options
| author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2022-03-03 14:40:55 +0530 |
|---|---|---|
| committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2022-03-30 15:09:01 +0530 |
| commit | 12abe61af44205a17c75ace71252db1bad05b184 (patch) | |
| tree | 83fae500ad5b7709b978e1d5dee3608e56b78cfc /mysql-test/main/func_json.test | |
| parent | a653dde279a3d35c0f7862e14b94d89025a121f1 (diff) | |
| download | mariadb-git-12abe61af44205a17c75ace71252db1bad05b184.tar.gz | |
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.
Diffstat (limited to 'mysql-test/main/func_json.test')
| -rw-r--r-- | mysql-test/main/func_json.test | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/main/func_json.test b/mysql-test/main/func_json.test index b7c8826550d..1e7d29dd350 100644 --- a/mysql-test/main/func_json.test +++ b/mysql-test/main/func_json.test @@ -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 |
