mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge rurik.mysql.com:/home/igor/dev/mysql-5.0-0
into rurik.mysql.com:/home/igor/dev/mysql-5.1-0 mysql-test/mysql-test-run.pl: Auto merged mysql-test/r/view.result: Auto merged mysql-test/t/view.test: Auto merged sql/item_cmpfunc.cc: Auto merged
This commit is contained in:
@@ -55,8 +55,8 @@ static void agg_cmp_type(THD *thd, Item_result *type, Item **items, uint nitems)
|
||||
bool all_constant= TRUE;
|
||||
|
||||
/* If the first argument is a FIELD_ITEM, pull out the field. */
|
||||
if (items[0]->type() == Item::FIELD_ITEM)
|
||||
field=((Item_field *)items[0])->field;
|
||||
if (items[0]->real_item()->type() == Item::FIELD_ITEM)
|
||||
field=((Item_field *)(items[0]->real_item()))->field;
|
||||
/* But if it can't be compared as a longlong, we don't really care. */
|
||||
if (field && !field->can_be_compared_as_longlong())
|
||||
field= NULL;
|
||||
|
Reference in New Issue
Block a user