1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

fixed time_format printing (BUG#7521)

This commit is contained in:
bell@sanja.is.com.ua
2005-06-20 14:56:17 +03:00
parent c45df76029
commit 02cac1c5e6
3 changed files with 14 additions and 1 deletions

View File

@@ -503,7 +503,8 @@ public:
Item_func_date_format(Item *a,Item *b,bool is_time_format_arg)
:Item_str_func(a,b),is_time_format(is_time_format_arg) {}
String *val_str(String *str);
const char *func_name() const { return "date_format"; }
const char *func_name() const
{ return is_time_format ? "time_format" : "date_format"; }
void fix_length_and_dec();
uint format_length(const String *format);
};