We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c378583 commit 6307580Copy full SHA for 6307580
database/clickhouse/clickhouse.go
@@ -279,6 +279,10 @@ func (ch *ClickHouse) Drop() (err error) {
279
280
query = "DROP TABLE IF EXISTS " + quoteIdentifier(ch.config.DatabaseName) + "." + quoteIdentifier(table)
281
282
+ if len(ch.config.ClusterName) > 0 {
283
+ query = query + " ON CLUSTER " + ch.config.ClusterName
284
+ }
285
+
286
if _, err := ch.conn.Exec(query); err != nil {
287
return &database.Error{OrigErr: err, Query: []byte(query)}
288
}
0 commit comments