mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 00:35:32 +02:00
Merge mysql.com:/home/ram/work/b23616/b23616.4.1
into mysql.com:/home/ram/work/b23616/b23616.5.0 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
This commit is contained in:
commit
7fc2a2a765
4 changed files with 13 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue