diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-12-19 02:30:22 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-12-20 08:06:55 +0100 |
commit | a79183b01e4e1f3af55abd102715560cecbbddae (patch) | |
tree | 08976463978c063746324d732b7cec3d36b16983 /sql/table.cc | |
parent | fca44b7c1ffe5e32a94e8d4449bd1d9f91492c3a (diff) | |
download | mariadb-git-a79183b01e4e1f3af55abd102715560cecbbddae.tar.gz |
correct table name in CHECK failures during ALTER TABLE
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc index dbf10bc8293..7c53246a7d3 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -5178,7 +5178,7 @@ int TABLE::verify_constraints(bool ignore_failure) field_error.append((*chk)->name.str); my_error(ER_CONSTRAINT_FAILED, MYF(ignore_failure ? ME_JUST_WARNING : 0), field_error.c_ptr(), - s->db.str, s->table_name.str); + s->db.str, s->error_table_name()); return ignore_failure ? VIEW_CHECK_SKIP : VIEW_CHECK_ERROR; } } |