mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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?).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user