sql_select.cc:

Postfix for bug#22331 for windows platform.
explain.test, explain.result:
  Cleanup after bugfix#22331.
This commit is contained in:
evgen@moonbone.local 2007-03-08 00:27:42 +03:00
parent 8936e53fca
commit 999c1cdcc1
3 changed files with 3 additions and 1 deletions

View file

@ -85,4 +85,5 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 system NULL NULL NULL NULL 1
Warnings:
Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2` from `test`.`t1` having 1
drop view v1;
drop table t1;

View file

@ -63,6 +63,7 @@ explain extended select * from t1 where 0;
explain extended select * from t1 where 1;
explain extended select * from t1 having 0;
explain extended select * from t1 having 1;
drop view v1;
drop table t1;
# End of 5.0 tests.

View file

@ -7622,7 +7622,7 @@ static COND* substitute_for_best_equal_field(COND *cond,
}
}
if (!((Item_cond*)cond)->argument_list()->elements)
cond= new Item_int(cond->val_bool());
cond= new Item_int((int32)cond->val_bool());
}
else if (cond->type() == Item::FUNC_ITEM &&