diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-02-07 18:14:45 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-02-07 18:14:45 +0100 |
commit | b6455479e588fe1309157e8cc77cca10b90942b6 (patch) | |
tree | 0b9ccd9ec0915053c7d20a3d7b40d8227fcc34cb /mysys | |
parent | cb5374801e594282b41883bf38892d4788668df1 (diff) | |
download | mariadb-git-b6455479e588fe1309157e8cc77cca10b90942b6.tar.gz |
MDEV-15230: column_json breaks cyrillic in 10.1.31
Use unsigned comparison.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/ma_dyncol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/ma_dyncol.c b/mysys/ma_dyncol.c index 0c54bd7a581..909f9dcac41 100644 --- a/mysys/ma_dyncol.c +++ b/mysys/ma_dyncol.c @@ -3834,7 +3834,7 @@ my_bool dynstr_append_json_quoted(DYNAMIC_STRING *str, for (i= 0; i < len; i++) { register char c= append[i]; - if (unlikely(c <= 0x1F)) + if (unlikely(((uchar)c) <= 0x1F)) { if (lim < 5) { |