diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-10-05 23:46:25 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-10-05 23:46:25 +0400 |
commit | f1a20ec396b1096a2afb9549ddd637de9653d099 (patch) | |
tree | a2c4856a6affcb444caf57c9b7373a9f17444bee /mysql-test/t | |
parent | 1f6ada8da8dbbe8c2d9e50ed0d4bd54c6f81653b (diff) | |
download | mariadb-git-f1a20ec396b1096a2afb9549ddd637de9653d099.tar.gz |
MDEV-12311 Insufficient check for argument validity in JSON functions.
Check validity to the end of the JSON in the json_length
function.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/func_json.test | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/t/func_json.test b/mysql-test/t/func_json.test index fdb5763771e..bc20a2222df 100644 --- a/mysql-test/t/func_json.test +++ b/mysql-test/t/func_json.test @@ -180,6 +180,7 @@ select json_length('{}'); select json_length('[1, 2, {"a": 3}]'); select json_length('{"a": 1, "b": {"c": 30}}', '$.b'); select json_length('{"a": 1, "b": {"c": 30}}'); +select json_length('{}{'); create table json (j INT); show create table json; |