Fix comments bug

This commit is contained in:
alesapin 2020-06-09 19:33:28 +03:00
parent f7a397242f
commit 6f673b0981

View File

@ -382,8 +382,8 @@ void IStorage::alter(
auto table_id = getStorageID();
StorageInMemoryMetadata old_metadata = getInMemoryMetadata();
params.apply(old_metadata, context);
DatabaseCatalog::instance().getDatabase(table_id.database_name)->alterTable(context, table_id, metadata);
setColumns(std::move(metadata.columns));
DatabaseCatalog::instance().getDatabase(table_id.database_name)->alterTable(context, table_id, old_metadata);
setColumns(std::move(old_metadata.columns));
}