a fix (bug #2885: like datetime)

This commit is contained in:
unknown 2004-03-11 18:21:57 +04:00
commit 1999806733
3 changed files with 21 additions and 0 deletions

View file

@ -225,6 +225,13 @@ void Item_bool_func2::fix_length_and_dec()
}
// Make a special case of compare with fields to get nicer DATE comparisons
if (functype() == LIKE_FUNC) // Disable conversion in case of LIKE function.
{
set_cmp_func();
return;
}
if (args[0]->type() == FIELD_ITEM)
{
Field *field=((Item_field*) args[0])->field;