mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
bug fixed
sql/field.cc: datatime length is 19, not 12
This commit is contained in:
parent
030d080d8b
commit
955e0b1304
1 changed files with 1 additions and 1 deletions
|
@ -5639,7 +5639,7 @@ int Field_datetime::store_time(TIME *ltime,timestamp_type type)
|
|||
(MODE_NO_ZERO_IN_DATE | MODE_NO_ZERO_DATE |
|
||||
MODE_INVALID_DATES))), &error))
|
||||
{
|
||||
char buff[12];
|
||||
char buff[19];
|
||||
String str(buff, sizeof(buff), &my_charset_latin1);
|
||||
make_datetime((DATE_TIME_FORMAT *) 0, ltime, &str);
|
||||
set_datetime_warning(MYSQL_ERROR::WARN_LEVEL_WARN, WARN_DATA_TRUNCATED,
|
||||
|
|
Loading…
Reference in a new issue