This commit is contained in:
kssenii 2021-12-21 01:19:51 +03:00
parent 2ac7897470
commit 30996b2448
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ ASTPtr tryGetTableOverride(const String & mapped_database, const String & table)
if (auto database_ptr = DatabaseCatalog::instance().tryGetDatabase(mapped_database))
{
auto create_query = database_ptr->getCreateDatabaseQuery();
if (auto create_database_query = create_query->as<ASTCreateQuery>())
if (auto * create_database_query = create_query->as<ASTCreateQuery>())
{
if (create_database_query->table_overrides)
{

View File

@ -468,7 +468,7 @@ ASTPtr StorageMaterializedPostgreSQL::getCreateNestedTableQuery(
columns_declare_list->set(columns_declare_list->columns, getColumnsExpressionList(ordinary_columns_and_types));
}
auto columns = table_override->columns;
auto * columns = table_override->columns;
if (columns && columns->constraints)
constraints = ConstraintsDescription(columns->constraints->children);
}