diff options
author | ramil/ram@mysql.com/ramil.myoffice.izhnet.ru <> | 2007-03-02 15:09:20 +0400 |
---|---|---|
committer | ramil/ram@mysql.com/ramil.myoffice.izhnet.ru <> | 2007-03-02 15:09:20 +0400 |
commit | 4a5dd6956dc1abc5cdc753172ac9693aceb9df9a (patch) | |
tree | dbf271dc1c2d6a7c704830eba3f2186a0d28bacb /sql-common | |
parent | 2b79d27d0708f46db41017dd9b1c872e20640990 (diff) | |
parent | 10475626c1973e6706ce8e5d85e3631587efacd3 (diff) | |
download | mariadb-git-4a5dd6956dc1abc5cdc753172ac9693aceb9df9a.tar.gz |
Merge mysql.com:/home/ram/work/b23616/b23616.4.1
into mysql.com:/home/ram/work/b23616/b23616.5.0
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/my_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c index 2669f234143..92801fd61c1 100644 --- a/sql-common/my_time.c +++ b/sql-common/my_time.c @@ -207,7 +207,7 @@ str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time, digits= (uint) (pos-str); start_loop= 0; /* Start of scan loop */ date_len[format_position[0]]= 0; /* Length of year field */ - if (pos == end) + if (pos == end || *pos == '.') { /* Found date in internal format (only numbers like YYYYMMDD) */ year_length= (digits == 4 || digits == 8 || digits >= 14) ? 4 : 2; |