1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-18278 Misleading error message in error log upon failed table creation

If error_reported is not set upper caller open_table_from_share()
throws error ER_NOT_FORM_FILE itself via open_table_error().
This commit is contained in:
Aleksey Midenkov
2021-09-28 16:00:41 +03:00
parent 275e7d23f7
commit 89936f11e9
3 changed files with 17 additions and 0 deletions

View File

@@ -1157,7 +1157,10 @@ bool parse_vcol_defs(THD *thd, MEM_ROOT *mem_root, TABLE *table,
if (check_vcol_forward_refs(field, field->vcol_info) ||
check_vcol_forward_refs(field, field->check_constraint) ||
check_vcol_forward_refs(field, field->default_value))
{
*error_reported= true;
goto end;
}
}
res=0;