mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
sql_select.cc, item_cmpfunc.h:
After merge fix for collation.
This commit is contained in:
@ -1020,6 +1020,8 @@ public:
|
|||||||
bool walk(Item_processor processor, byte *arg);
|
bool walk(Item_processor processor, byte *arg);
|
||||||
Item *transform(Item_transformer transformer, byte *arg);
|
Item *transform(Item_transformer transformer, byte *arg);
|
||||||
void print(String *str);
|
void print(String *str);
|
||||||
|
CHARSET_INFO *compare_collation()
|
||||||
|
{ return fields.head()->collation.collation; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class COND_EQUAL
|
class COND_EQUAL
|
||||||
|
@ -4539,6 +4539,12 @@ static bool check_equality(Item *item, COND_EQUAL *cond_equal)
|
|||||||
field_item->result_type() == const_item->result_type())
|
field_item->result_type() == const_item->result_type())
|
||||||
{
|
{
|
||||||
bool copyfl;
|
bool copyfl;
|
||||||
|
|
||||||
|
if (field_item->result_type() == STRING_RESULT &&
|
||||||
|
((Field_str *) field_item)->charset() !=
|
||||||
|
((Item_cond *) item)->compare_collation())
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
Item_equal *item_equal = find_item_equal(cond_equal,
|
Item_equal *item_equal = find_item_equal(cond_equal,
|
||||||
field_item->field, ©fl);
|
field_item->field, ©fl);
|
||||||
if (copyfl)
|
if (copyfl)
|
||||||
|
Reference in New Issue
Block a user