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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user