diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2017-12-15 15:01:13 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2017-12-15 15:18:59 +0300 |
commit | 73606a3977cb4b76fa8205ca99ff7aedf4b8866c (patch) | |
tree | 8cb4ba356ee9001fb496492932223f9d98807fc8 /sql/item_cmpfunc.cc | |
parent | 2ae2876a6ce4b1e4d4bb61d8f372feff1cb51339 (diff) | |
parent | 2b67b7cb08bf163df3e02115ddc13d05dc966c03 (diff) | |
download | mariadb-git-73606a3977cb4b76fa8205ca99ff7aedf4b8866c.tar.gz |
System Versioning 1.0 pre5 [closes #407]
Merge branch '10.3' into trunk
Both field_visibility and VERS_HIDDEN_FLAG exist independently.
TODO:
VERS_HIDDEN_FLAG should be replaced with SYSTEM_INVISIBLE (or COMPLETELY_INVISIBLE?).
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 d38b0100246..1d4a44d5326 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -6962,20 +6962,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); } |