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

MDEV-18512 using DATETIME(6) as row_start/row_end crashes server

Disallow DATETIME for SYSTEM VERSIONING tables.
This commit is contained in:
Eugene Kosov
2019-02-21 18:59:28 +03:00
committed by Alexander Barkov
parent b77460508e
commit 6473641b9a
4 changed files with 17 additions and 3 deletions

View File

@ -7433,8 +7433,7 @@ bool Vers_parse_info::check_conditions(const Lex_table_name &table_name,
static bool is_versioning_timestamp(const Create_field *f)
{
return (f->type_handler() == &type_handler_datetime2 ||
f->type_handler() == &type_handler_timestamp2) &&
return f->type_handler() == &type_handler_timestamp2 &&
f->length == MAX_DATETIME_FULL_WIDTH;
}