mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Fix
This commit is contained in:
parent
2ac7897470
commit
30996b2448
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user