diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-10-06 10:01:35 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-10-06 10:01:35 +0400 |
commit | 3557de68d14eb3d5f8808933a4f52b6ca8f9a005 (patch) | |
tree | b543aeb388f2983e589e09b234e2be9074ec071f /strings | |
parent | a3ba8c3660aefa9bd7921f8183f13246bfb90432 (diff) | |
download | mariadb-git-3557de68d14eb3d5f8808933a4f52b6ca8f9a005.tar.gz |
MDEV-12312 JSON_CONTAINS_PATH does not detect invalid path and returns
TRUE.
Let's make empty brackets to be the syntax error in the JSON
paths.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/json_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c index 3df2ecd4768..cf99afd6f7b 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -1043,7 +1043,7 @@ static int json_path_transitions[N_PATH_STATES][N_PATH_CLASSES]= /* PT */ { PS_OK, JE_SYN, PS_AST, PS_AR, JE_SYN, PS_KEY, JE_SYN, JE_SYN, JE_SYN, JE_SYN, JE_SYN, JE_SYN, JE_SYN, JE_SYN, JE_NOT_JSON_CHR, JE_BAD_CHR}, -/* AR */ { JE_EOS, JE_SYN, PS_AWD, JE_SYN, PS_PT, JE_SYN, PS_Z, +/* AR */ { JE_EOS, JE_SYN, PS_AWD, JE_SYN, JE_SYN, JE_SYN, PS_Z, PS_INT, JE_SYN, JE_SYN, PS_SAR, JE_SYN, JE_SYN, JE_SYN, JE_NOT_JSON_CHR, JE_BAD_CHR}, /* SAR */ { JE_EOS, JE_SYN, PS_AWD, JE_SYN, PS_PT, JE_SYN, PS_Z, |