summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorEvgeny Potemkin <epotemkin@mysql.com>2009-12-14 17:17:41 +0300
committerEvgeny Potemkin <epotemkin@mysql.com>2009-12-14 17:17:41 +0300
commit5606aed1839702cc545f740f27c88a3197920b89 (patch)
treefed6e3b990ac3beeaf6b7b3f642fd439516729e4 /sql/item_timefunc.cc
parentaceea2342faa7e9a4b8b5cea6d18c0801e6975b6 (diff)
downloadmariadb-git-5606aed1839702cc545f740f27c88a3197920b89.tar.gz
Post-merge fix.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r--sql/item_timefunc.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index e4644aa6436..56c46efb1a8 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -876,12 +876,7 @@ static bool get_interval_info(const char *str,uint length,CHARSET_INFO *cs,
const char *start= str;
for (value=0; str != end && my_isdigit(cs,*str) ; str++)
value= value*LL(10) + (longlong) (*str - '0');
- if (transform_msec && i == count - 1) // microseconds always last
- {
- int msec_length= 6 - (str - start);
- if (msec_length > 0)
- value*= (long)log_10_int[msec_length];
- }
+ msec_length= 6 - (str - start);
values[i]= value;
while (str != end && !my_isdigit(cs,*str))
str++;