diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-08-06 23:37:22 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-08-06 23:37:22 +0300 |
commit | 91342372b35ab1efb59cdb57bcad73f947a1a304 (patch) | |
tree | 5343dbd0970dcc5ab7f880fad7dfb6df4fab4d38 /sql/item_timefunc.h | |
parent | 8c99625cbb0563ae906317883d2c5bbcd279a472 (diff) | |
download | mariadb-git-91342372b35ab1efb59cdb57bcad73f947a1a304.tar.gz |
Fix for a bug which caused problems in CREATE from SELECT with
MONTH() function in SELECT list ...
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index 6b0d1850d8c..d867433ef91 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -71,6 +71,11 @@ public: const char *func_name() const { return "month"; } enum Item_result result_type () const { return INT_RESULT; } void fix_length_and_dec() { decimals=0; max_length=2; maybe_null=1; } + Field *tmp_table_field(TABLE *t_arg) + { + if (!t_arg) return result_field; + return (Field *) new Field_string(max_length,maybe_null, name,t_arg, binary); + } }; class Item_func_monthname :public Item_func_month |