mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Fix crashing in case of Replicated database without arguments
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
8102fe3e21
commit
ef06bb8f14
@ -227,7 +227,7 @@ BlockIO InterpreterCreateQuery::createDatabase(ASTCreateQuery & create)
|
||||
metadata_path = metadata_path / "metadata" / database_name_escaped;
|
||||
}
|
||||
|
||||
if (create.storage->engine->name == "Replicated" && !internal && !create.attach)
|
||||
if (create.storage->engine->name == "Replicated" && !internal && !create.attach && create.storage->engine->arguments)
|
||||
{
|
||||
/// Fill in default parameters
|
||||
if (create.storage->engine->arguments->children.size() == 1)
|
||||
|
@ -0,0 +1,4 @@
|
||||
-- Tags: no-parallel
|
||||
|
||||
set allow_experimental_database_replicated=1;
|
||||
create database replicated_db_no_args engine=Replicated; -- { serverError BAD_ARGUMENTS }
|
Loading…
Reference in New Issue
Block a user