summaryrefslogtreecommitdiff
path: root/strings/json_lib.c
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2018-11-12 01:50:07 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2018-11-12 01:50:07 +0400
commitb290ef8c76e2d7dfbae7a85766694a6fd4648eac (patch)
tree8b3f530daa561b83581aa942963323f61410071f /strings/json_lib.c
parenta12b8ac8e9636f8258bcb17a0845b9317d870fd9 (diff)
downloadmariadb-git-b290ef8c76e2d7dfbae7a85766694a6fd4648eac.tar.gz
MDEV-17454 JSON_VALID( '{"a":1]' ) evaluates to 1.
Produce syntax error when '{...]'.
Diffstat (limited to 'strings/json_lib.c')
-rw-r--r--strings/json_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c
index 4f12cbb82b5..394517a4ab6 100644
--- a/strings/json_lib.c
+++ b/strings/json_lib.c
@@ -774,7 +774,7 @@ static json_state_handler json_actions[NR_JSON_STATES][NR_C_CLASSES]=
syntax_error, syntax_error, syntax_error, syntax_error, syntax_error,
syntax_error, syntax_error, syntax_error, not_json_chr, bad_chr},
{/*OBJ_CONT*/
- unexpected_eos, syntax_error, end_object, syntax_error, end_array,
+ unexpected_eos, syntax_error, end_object, syntax_error, syntax_error,
syntax_error, next_key, syntax_error, syntax_error, syntax_error,
syntax_error, syntax_error, syntax_error, not_json_chr, bad_chr},
{/*ARRAY_CONT*/