summaryrefslogtreecommitdiff
path: root/strings/json_lib.c
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2018-03-25 00:15:11 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2018-03-25 00:15:11 +0400
commitd702e463902bca7d94ff8a1a49468a5b7bdb4ba0 (patch)
treebecf831c25d761b63e1615293da4ab3f033c5639 /strings/json_lib.c
parent7003067a09979429ce5b9456aa98283652714657 (diff)
downloadmariadb-git-d702e463902bca7d94ff8a1a49468a5b7bdb4ba0.tar.gz
MDEV-15561 json_extract returns NULL with numbers in scientific notation.
Scientific notation handling fixed.
Diffstat (limited to 'strings/json_lib.c')
-rw-r--r--strings/json_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c
index 413ce128149..cbf672f5887 100644
--- a/strings/json_lib.c
+++ b/strings/json_lib.c
@@ -475,8 +475,8 @@ static int json_num_states[NS_NUM_STATES][N_NUM_CLASSES]=
/*ZE1*/ { JE_SYN, JE_SYN, JE_SYN, JE_SYN, NS_FRAC, JE_SYN, NS_OK, JE_BAD_CHR },
/*INT*/ { JE_SYN, JE_SYN, NS_INT, NS_INT, NS_FRAC, NS_EX, NS_OK, JE_BAD_CHR },
/*FRAC*/ { JE_SYN, JE_SYN, NS_FRAC, NS_FRAC,JE_SYN, NS_EX, NS_OK, JE_BAD_CHR },
-/*EX*/ { NS_EX1, NS_EX1, NS_EX1, NS_EX1, JE_SYN, JE_SYN, JE_SYN, JE_BAD_CHR },
-/*EX1*/ { JE_SYN, JE_SYN, NS_EX1, NS_EX1, JE_SYN, JE_SYN, JE_SYN, JE_BAD_CHR }
+/*EX*/ { NS_EX, NS_EX, NS_EX1, NS_EX1, JE_SYN, JE_SYN, JE_SYN, JE_BAD_CHR },
+/*EX1*/ { JE_SYN, JE_SYN, NS_EX1, NS_EX1, JE_SYN, JE_SYN, NS_OK, JE_BAD_CHR }
};