1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

bug #504: in "datetime op int" comparison int wasn't converted to datetime

This commit is contained in:
unknown
2003-07-02 17:12:50 +02:00
parent 49938821c2
commit 7bb4166a9a
3 changed files with 13 additions and 3 deletions

View File

@ -46,7 +46,7 @@ longlong Item_func_not::val_int()
static bool convert_constant_item(Field *field, Item **item)
{
if ((*item)->const_item() && (*item)->type() != Item::INT_ITEM)
if ((*item)->const_item())
{
if (!(*item)->save_in_field(field, 1) &&
!((*item)->null_value))