diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-12-14 09:53:19 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-12-14 09:53:19 +0200 |
commit | 1b5f0cbd465f92ffc278a924e765e41413d97420 (patch) | |
tree | 0f386de98c507aca6127d3134ce58f428e63d283 /sql/item_cmpfunc.cc | |
parent | 701e22d5cd6642e803cfca2443c522a2998e3047 (diff) | |
parent | 806380494353bb1389507def0256b3308e5cedbb (diff) | |
download | mariadb-git-1b5f0cbd465f92ffc278a924e765e41413d97420.tar.gz |
Merge 10.2 into bb-10.2-ext
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 587dc14c529..d7429af76f7 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -6940,20 +6940,20 @@ longlong Item_func_dyncol_exists::val_int() null_value= 1; return 1; } - if (my_charset_same(nm->charset(), &my_charset_utf8_general_ci)) + if (my_charset_same(nm->charset(), DYNCOL_UTF)) { buf.str= (char *) nm->ptr(); buf.length= nm->length(); } else { - uint strlen= nm->length() * my_charset_utf8_general_ci.mbmaxlen + 1; + uint strlen= nm->length() * DYNCOL_UTF->mbmaxlen + 1; uint dummy_errors; buf.str= (char *) current_thd->alloc(strlen); if (buf.str) { buf.length= - copy_and_convert(buf.str, strlen, &my_charset_utf8_general_ci, + copy_and_convert(buf.str, strlen, DYNCOL_UTF, nm->ptr(), nm->length(), nm->charset(), &dummy_errors); } |