1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-2061 Add upgrade path to rebuild FRM files

A major upgrade (1.1 -> 1.2 for example) may have issues due to stale
FRM table IDs. This commit adds a stored procedure that changes the
table comment to empty on every ColumnStore table to repair the IDs.

The user should run this as part of the upgrade procedure between major
versions.
This commit is contained in:
Andrew Hutchings
2019-04-04 15:32:38 +01:00
parent 7b1f461dde
commit 6f15c97591
2 changed files with 21 additions and 1 deletions

View File

@ -2064,7 +2064,8 @@ void AlterTableProcessor::tableComment(uint32_t sessionID, execplan::CalpontSyst
}
else
{
throw std::runtime_error("Invalid table comment");
// Generic table comment, we don't need to do anything
return;
}
// Get the OID for autoinc (if exists)