Commit b692e9c2 authored by unknown's avatar unknown

sql_select.cc, item_cmpfunc.h:

  After merge fix for collation.


sql/item_cmpfunc.h:
  After merge fix for collation.
sql/sql_select.cc:
  After merge fix for collation.
parent efaf0f0d
......@@ -1020,6 +1020,8 @@ class Item_equal: public Item_bool_func
bool walk(Item_processor processor, byte *arg);
Item *transform(Item_transformer transformer, byte *arg);
void print(String *str);
CHARSET_INFO *compare_collation()
{ return fields.head()->collation.collation; }
};
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())
{
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,
field_item->field, &copyfl);
if (copyfl)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment