From dfb6f96eaf6a94cfa4f0f508136a190ac22fd381 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 21 Feb 2018 18:14:04 +0100 Subject: MDEV-15190 Bad error for non-versioned table PARTITION BY SYSTEM_TIME --- sql/partition_info.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql/partition_info.cc') diff --git a/sql/partition_info.cc b/sql/partition_info.cc index e6ad7c9b008..87d322cf7fa 100644 --- a/sql/partition_info.cc +++ b/sql/partition_info.cc @@ -928,7 +928,8 @@ bool partition_info::vers_setup_expression(THD * thd, uint32 alter_add) { if (!table->versioned()) { - my_error(ER_VERS_ENGINE_UNSUPPORTED, MYF(0), table->s->table_name.str); + // frm must be corrupted, normally CREATE/ALTER TABLE checks for that + my_error(ER_FILE_CORRUPT, MYF(0), table->s->path.str); return true; } -- cgit v1.2.1