mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 08:15:31 +02:00
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1-maint
into mysql.com:/home/ram/work/b23616/b23616.4.1
This commit is contained in:
commit
6db4978947
4 changed files with 13 additions and 4 deletions
|
|
@ -145,7 +145,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