diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-23 18:21:01 +0400 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-23 18:21:01 +0400 |
commit | 429409eb19fb2376a259c55f5fefd5e823b42909 (patch) | |
tree | c905f4d7832739aedf78277c02152e44e1743d9c /sql/item_timefunc.h | |
parent | adf8aaca5b57c58db6fe90ab21ddde4010ab1f9d (diff) | |
parent | 26e804d0a78c31c9206b920245821cad42b0724f (diff) | |
download | mariadb-git-429409eb19fb2376a259c55f5fefd5e823b42909.tar.gz |
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index 99240b1c759..94b02d1eaf6 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -116,18 +116,13 @@ public: class Item_func_monthname :public Item_func_month { + MY_LOCALE *locale; public: Item_func_monthname(Item *a) :Item_func_month(a) {} const char *func_name() const { return "monthname"; } String *val_str(String *str); enum Item_result result_type () const { return STRING_RESULT; } - void fix_length_and_dec() - { - collation.set(&my_charset_bin); - decimals=0; - max_length=10*my_charset_bin.mbmaxlen; - maybe_null=1; - } + void fix_length_and_dec(); bool check_partition_func_processor(uchar *int_arg) {return TRUE;} }; @@ -291,18 +286,13 @@ public: class Item_func_dayname :public Item_func_weekday { + MY_LOCALE *locale; public: Item_func_dayname(Item *a) :Item_func_weekday(a,0) {} const char *func_name() const { return "dayname"; } String *val_str(String *str); enum Item_result result_type () const { return STRING_RESULT; } - void fix_length_and_dec() - { - collation.set(&my_charset_bin); - decimals=0; - max_length=9*MY_CHARSET_BIN_MB_MAXLEN; - maybe_null=1; - } + void fix_length_and_dec(); bool check_partition_func_processor(uchar *int_arg) {return TRUE;} }; |