diff options
author | unknown <sanja@askmonty.org> | 2011-10-18 13:44:12 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2011-10-18 13:44:12 +0300 |
commit | 255c04aed8b4159ac8402bc80bab3771c0236d40 (patch) | |
tree | 8d947e1a98f7f3eb9dce22ee44e49276d357ea4f /sql/item_timefunc.cc | |
parent | 9f6e24a05a32c147f292cd6260d63a31cb8cd9db (diff) | |
download | mariadb-git-255c04aed8b4159ac8402bc80bab3771c0236d40.tar.gz |
Compiler warning about assigned but not used variables fixed.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 0f12f6755ed..3a1e3a93f72 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -2436,7 +2436,6 @@ bool Item_func_add_time::get_date(MYSQL_TIME *ltime, uint fuzzy_date) long days, microseconds; longlong seconds; int l_sign= sign, was_cut= 0; - uint dec= decimals; if (is_date) // TIMESTAMP function { @@ -2478,10 +2477,6 @@ bool Item_func_add_time::get_date(MYSQL_TIME *ltime, uint fuzzy_date) ltime->time_type= is_time ? MYSQL_TIMESTAMP_TIME : MYSQL_TIMESTAMP_DATETIME; - if (cached_field_type == MYSQL_TYPE_STRING && - (l_time1.second_part || l_time2.second_part)) - dec= TIME_SECOND_PART_DIGITS; - if (!is_time) { get_date_from_daynr(days,<ime->year,<ime->month,<ime->day); |