diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-08-05 12:52:37 +0500 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-08-05 12:52:37 +0500 |
commit | e8da290b099fe2cfcdcb16d5e7805c616a8b526e (patch) | |
tree | 32d0b515ccfba2f4c3d89d2551aefc3602e1d452 /sql/item_timefunc.cc | |
parent | 970f910d757f5a5a8ce0ff31a8d7321da71995e8 (diff) | |
download | mariadb-git-e8da290b099fe2cfcdcb16d5e7805c616a8b526e.tar.gz |
Old style charset() and set_charset() were removed.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index c2d1504e94a..62d8afd7ec0 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -574,7 +574,7 @@ void Item_func_curdate::fix_length_and_dec() struct tm tm_tmp,*start; time_t query_start=current_thd->query_start(); - set_charset(default_charset()); + collation.set(default_charset()); decimals=0; max_length=10*default_charset()->mbmaxlen; localtime_r(&query_start,&tm_tmp); @@ -617,7 +617,7 @@ void Item_func_curtime::fix_length_and_dec() max_length=8*cs->mbmaxlen; localtime_r(&query_start,&tm_tmp); start=&tm_tmp; - set_charset(cs); + collation.set(cs); value=(longlong) ((ulong) ((uint) start->tm_hour)*10000L+ (ulong) (((uint) start->tm_min)*100L+ (uint) start->tm_sec)); @@ -644,7 +644,7 @@ void Item_func_now::fix_length_and_dec() decimals=0; max_length=19*cs->mbmaxlen; - set_charset(cs); + collation.set(cs); localtime_r(&query_start,&tm_tmp); start=&tm_tmp; value=((longlong) ((ulong) ((uint) start->tm_year+1900)*10000L+ @@ -1130,7 +1130,7 @@ bool Item_func_from_unixtime::get_date(TIME *ltime, void Item_date_add_interval::fix_length_and_dec() { enum_field_types arg0_field_type; - set_charset(default_charset()); + collation.set(default_charset()); maybe_null=1; max_length=26*MY_CHARSET_BIN_MB_MAXLEN; value.alloc(32); |