Skip to content

Commit

Permalink
Support cluster as a macro
Browse files Browse the repository at this point in the history
Fixes: #58
  • Loading branch information
azat committed Apr 7, 2024
1 parent aed3564 commit 47518be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,6 @@ impl ClickHouse {
if cluster.is_empty() {
return dbtable.to_string();
}
return format!("clusterAllReplicas({}, {})", cluster, dbtable);
return format!("clusterAllReplicas('{}', {})", cluster, dbtable);
}
}

1 comment on commit 47518be

@filimonov
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That also shiukd fix cluster with dash in name

Please sign in to comment.