Commit 6c2724fc authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-19628 JSON with starting double quotes key is not valid.

Make the skip_key a bit faster.
parent 6ac2a355
...@@ -826,7 +826,10 @@ static int skip_key(json_engine_t *j) ...@@ -826,7 +826,10 @@ static int skip_key(json_engine_t *j)
{ {
int t_next, c_len; int t_next, c_len;
j->s.c_str-= j->sav_c_len; if (json_instr_chr_map[j->s.c_next] == S_BKSL &&
json_handle_esc(&j->s))
return 1;
while (json_read_keyname_chr(j) == 0) {} while (json_read_keyname_chr(j) == 0) {}
if (j->s.error) if (j->s.error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment