mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Reversing additional change suggested by Serg
under terms of bug#28875 for better performance. The change appeared to require more changes in item_cmpfunc.cc, which is dangerous in 5.0. Conversion between a latin1 column and an ascii string constant stopped to work. mysql-test/r/ctype_recoding.result: Adding test case. mysql-test/t/ctype_recoding.test: Adding test case.
This commit is contained in:
@ -263,8 +263,6 @@ bool String::needs_conversion(uint32 arg_length,
|
||||
(to_cs == &my_charset_bin) ||
|
||||
(to_cs == from_cs) ||
|
||||
my_charset_same(from_cs, to_cs) ||
|
||||
(my_charset_is_ascii_based(to_cs) &&
|
||||
my_charset_is_8bit_pure_ascii(from_cs)) ||
|
||||
((from_cs == &my_charset_bin) &&
|
||||
(!(*offset=(arg_length % to_cs->mbminlen)))))
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user