fix build

This commit is contained in:
Alexander Tokmakov 2020-04-23 22:50:05 +03:00
parent 15e7ce0053
commit 8be4d51111
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ DatabasePtr DatabaseCatalog::detachDatabase(const String & database_name, bool d
if (!db->empty())
throw Exception("New table appeared in database being dropped or detached. Try again.",
ErrorCodes::DATABASE_NOT_EMPTY);
auto database_atomic = typeid_cast<DatabaseAtomic *>(db.get());
auto * database_atomic = typeid_cast<DatabaseAtomic *>(db.get());
if (!drop && database_atomic)
database_atomic->assertCanBeDetached(false);
}

View File

@ -241,7 +241,7 @@ BlockIO InterpreterDropQuery::executeToDatabase(const String & database_name, AS
}
}
auto database_atomic = typeid_cast<DatabaseAtomic *>(database.get());
auto * database_atomic = typeid_cast<DatabaseAtomic *>(database.get());
if (!drop && database_atomic)
database_atomic->assertCanBeDetached(true);