diff options
author | unknown <ramil/ram@ramil.myoffice.izhnet.ru> | 2007-03-02 15:13:28 +0400 |
---|---|---|
committer | unknown <ramil/ram@ramil.myoffice.izhnet.ru> | 2007-03-02 15:13:28 +0400 |
commit | e5d9a306dc23bca14f6f2c83de0eacc1b1ad0c71 (patch) | |
tree | 4947771829e4cbdc47aa2b6191e5ee9192262072 /sql-common/my_time.c | |
parent | e05764a3b2010d50cfcd14683828b21f557c8b99 (diff) | |
parent | 7fc2a2a765f976bd0ee7a5c965d33b429aba1a52 (diff) | |
download | mariadb-git-e5d9a306dc23bca14f6f2c83de0eacc1b1ad0c71.tar.gz |
Merge mysql.com:/home/ram/work/b23616/b23616.5.0
into mysql.com:/home/ram/work/b23616/b23616.5.1
mysql-test/r/func_sapdb.result:
Auto merged
mysql-test/r/func_time.result:
Auto merged
mysql-test/t/func_time.test:
Auto merged
sql-common/my_time.c:
Auto merged
Diffstat (limited to 'sql-common/my_time.c')
-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 dcbd2eacdc1..aeb3aaec675 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; |