summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-02-21 18:14:04 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-24 00:50:56 +0100
commitdfb6f96eaf6a94cfa4f0f508136a190ac22fd381 (patch)
tree114167ae4fa0a4e4b7308a3c18e1bd38d4d9957c /sql/partition_info.cc
parentedeeaac45180373ac268cc8d0feb220b82d0519f (diff)
downloadmariadb-git-dfb6f96eaf6a94cfa4f0f508136a190ac22fd381.tar.gz
MDEV-15190 Bad error for non-versioned table PARTITION BY SYSTEM_TIME
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc3
1 files changed, 2 insertions, 1 deletions
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;
}