MXS-2264: Add support for RENAME TABLE

RENAME TABLE is now fully supported and works as expected. With the fix to
table versioning, the new table name will receive the latest version
number.
This commit is contained in:
Markus Mäkelä
2019-09-30 09:57:07 +03:00
parent 7767231c8f
commit b223e6eed3
3 changed files with 66 additions and 2 deletions

View File

@ -294,5 +294,6 @@ private:
bool save_and_replace_table_create(STableCreateEvent created);
bool rename_table_create(STableCreateEvent created, const std::string& old_id);
bool table_create_alter(STableCreateEvent create, const char* sql, const char* end);
void table_create_rename(const std::string& db, const char* sql, const char* end);
bool table_matches(const std::string& ident);
};