diff options
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 5b09f58d41e..49bce381901 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -134,7 +134,7 @@ longlong Item_func_month::val_int() String* Item_func_monthname::val_str(String* str) { uint month=(uint) Item_func_month::val_int(); - if (null_value) + if (!month) // This is also true for NULL return (String*) 0; return &month_names[month-1]; } |