lp:893522 more problems found by PVS Studio

This commit is contained in:
Sergei Golubchik 2012-01-12 20:23:02 +01:00
commit 45e25e3643

View file

@ -597,7 +597,7 @@ bool subquery_types_allow_materialization(Item_in_subselect *in_subs)
break;
case TIME_RESULT:
if (mysql_type_to_time_type(outer->field_type()) !=
mysql_type_to_time_type(outer->field_type()))
mysql_type_to_time_type(inner->field_type()))
DBUG_RETURN(FALSE);
default:
/* suitable for materialization */