mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix for a bug which caused problems in CREATE from SELECT with
MONTH() function in SELECT list ...
This commit is contained in:
@ -71,6 +71,11 @@ public:
|
|||||||
const char *func_name() const { return "month"; }
|
const char *func_name() const { return "month"; }
|
||||||
enum Item_result result_type () const { return INT_RESULT; }
|
enum Item_result result_type () const { return INT_RESULT; }
|
||||||
void fix_length_and_dec() { decimals=0; max_length=2; maybe_null=1; }
|
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
|
class Item_func_monthname :public Item_func_month
|
||||||
|
Reference in New Issue
Block a user