1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-13202 Assertion `ltime->neg == 0' failed in date_to_datetime

This commit is contained in:
Alexander Barkov
2018-03-13 12:42:41 +04:00
parent 4a35e76f64
commit 48c11d407b
3 changed files with 42 additions and 0 deletions

View File

@ -960,6 +960,8 @@ bool date_add_interval(MYSQL_TIME *ltime, interval_type int_type,
ltime->day= 0;
return 0;
}
else if (ltime->neg)
goto invalid_date;
if (int_type != INTERVAL_DAY)
ltime->time_type= MYSQL_TIMESTAMP_DATETIME; // Return full date