Bug#32848: Data type conversion bug in union subselects in MySQL 5.0.38

Warnings elimination
This commit is contained in:
mhansson/martin@linux-st28.site 2007-12-20 10:58:21 +01:00
parent 867a786549
commit 6f6e18809a

View File

@ -8974,7 +8974,7 @@ static Field *create_tmp_field_from_item(THD *thd, Item *item, TABLE *table,
*((*copy_func)++) = item; // Save for copy_funcs
if (modify_item)
item->set_result_field(new_field);
if (item->type() == MYSQL_TYPE_NULL)
if (item->type() == Item::NULL_ITEM)
new_field->is_created_from_null_item= TRUE;
return new_field;
}