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.
2 parents be5f88b + 6307580 commit b02bcbdCopy full SHA for b02bcbd
database/clickhouse/clickhouse.go
@@ -314,6 +314,10 @@ func (ch *ClickHouse) Drop() (err error) {
314
315
query = "DROP TABLE IF EXISTS " + quoteIdentifier(ch.config.DatabaseName) + "." + quoteIdentifier(table)
316
317
+ if len(ch.config.ClusterName) > 0 {
318
+ query = query + " ON CLUSTER " + ch.config.ClusterName
319
+ }
320
+
321
if _, err := ch.conn.Exec(query); err != nil {
322
return &database.Error{OrigErr: err, Query: []byte(query)}
323
}
0 commit comments