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

MDEV-29495 Generalize can_convert_xxx() hook engine API to cover any arbitrary data type

This commit is contained in:
Alexander Barkov
2022-10-26 14:48:03 +04:00
parent 29633dc0c0
commit ce443c8554
7 changed files with 43 additions and 87 deletions

View File

@ -6948,7 +6948,7 @@ static bool fill_alter_inplace_info(THD *thd, TABLE *table, bool varchar,
bool is_equal= field->is_equal(*new_field);
if (!is_equal)
{
if (field->can_be_converted_by_engine(*new_field))
if (field->table->file->can_convert_nocopy(*field, *new_field))
{
/*
New column type differs from the old one, but storage engine can