1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-12604 Comparison of JSON_EXTRACT result differs with Mysql.

Comparison fixed to take the actual type of JSON value into
        account. Bug in escaping handling fixed.
This commit is contained in:
Alexey Botchkov
2017-08-08 10:35:26 +04:00
parent 86e0a73eaa
commit bb71d9abf2
6 changed files with 138 additions and 13 deletions

View File

@@ -253,7 +253,7 @@ static int read_4_hexdigits(json_string_t *s, uchar *dest)
if ((c_len= json_next_char(s)) <= 0)
return s->error= json_eos(s) ? JE_EOS : JE_BAD_CHR;
if (s->c_next >= 128 || (t= json_instr_chr_map[s->c_next]) >= S_F)
if (s->c_next >= 128 || (t= json_instr_chr_map[s->c_next]) > S_F)
return s->error= JE_SYN;
s->c_str+= c_len;