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:
@ -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))
|
||||
|
Reference in New Issue
Block a user