diff options
author | monty@mysql.com/narttu.mysql.fi <> | 2006-12-15 01:01:52 +0200 |
---|---|---|
committer | monty@mysql.com/narttu.mysql.fi <> | 2006-12-15 01:01:52 +0200 |
commit | a6481aa4c7016c996a9787db4824307c705ec8a1 (patch) | |
tree | b60f635d3126e8d0f1321f0187390d7cf8496558 /sql/item_timefunc.cc | |
parent | 95564bfea31aef4686ae4e7c6d422e2a20a5d73a (diff) | |
parent | 88dd873de0d5dc6e8f262268f925596a60b58704 (diff) | |
download | mariadb-git-a6481aa4c7016c996a9787db4824307c705ec8a1.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 8504434aed5..38c8721ffe5 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -1177,14 +1177,14 @@ String* Item_func_dayname::val_str(String* str) { DBUG_ASSERT(fixed == 1); uint weekday=(uint) val_int(); // Always Item_func_daynr() - const char *name; + const char *day_name; THD *thd= current_thd; if (null_value) return (String*) 0; - name= thd->variables.lc_time_names->day_names->type_names[weekday]; - str->set(name, strlen(name), system_charset_info); + day_name= thd->variables.lc_time_names->day_names->type_names[weekday]; + str->set(day_name, strlen(day_name), system_charset_info); return str; } @@ -3309,10 +3309,10 @@ bool Item_func_str_to_date::get_date(TIME *ltime, uint fuzzy_date) { DATE_TIME_FORMAT date_time_format; char val_buff[64], format_buff[64]; - String val_str(val_buff, sizeof(val_buff), &my_charset_bin), *val; + String val_string(val_buff, sizeof(val_buff), &my_charset_bin), *val; String format_str(format_buff, sizeof(format_buff), &my_charset_bin), *format; - val= args[0]->val_str(&val_str); + val= args[0]->val_str(&val_string); format= args[1]->val_str(&format_str); if (args[0]->null_value || args[1]->null_value) goto null_date; |