CLICKHOUSE-3714

This commit is contained in:
VadimPE 2018-08-02 12:03:38 +03:00
parent 08fe108ba8
commit 98c33de4e3
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ bool StorageMaterializedView::checkPartitionCanBeDroppedDetachReplace(const ASTP
if (!target_table)
return true;
return target_table->checkPartitionCanBeDroppedAttachReplace(partition);
return target_table->checkPartitionCanBeDroppedDetachReplace(partition);
}
void registerStorageMaterializedView(StorageFactory & factory)

View File

@ -3363,7 +3363,7 @@ bool StorageReplicatedMergeTree::checkPartitionCanBeDroppedDetachReplace(const A
for (const auto & part : parts_to_remove)
{
context.checkPartitionCanBeDroppedAttachReplace(database_name, table_name, part->getTotalColumnsSize().data_compressed);
context.checkPartitionCanBeDroppedDetachReplace(database_name, table_name, part->getTotalColumnsSize().data_compressed);
}
return true;
}