diff --git a/dbms/src/Storages/StorageFactory.cpp b/dbms/src/Storages/StorageFactory.cpp index 5351f87f704..c8a7ccec0e0 100644 --- a/dbms/src/Storages/StorageFactory.cpp +++ b/dbms/src/Storages/StorageFactory.cpp @@ -75,7 +75,7 @@ StoragePtr StorageFactory::get( ASTs & args = dynamic_cast(*args_func.at(0)).children; - if (args.size() != 2) + if (args.size() != 5) break; String source_database = dynamic_cast(*args[0]).name;