1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-12-21 23:57:27 +02:00

fix: escape cluster name

This commit is contained in:
Vladimir Mihailenco
2023-09-07 11:03:37 +03:00
parent 2d9abe8a1a
commit faaf5d3708
7 changed files with 22 additions and 18 deletions

View File

@@ -69,8 +69,8 @@ func (q *CreateTableQuery) IfNotExists() *CreateTableQuery {
return q
}
func (q *CreateTableQuery) OnCluster(query string, args ...any) *CreateTableQuery {
q.onCluster = chschema.SafeQuery(query, args)
func (q *CreateTableQuery) OnCluster(cluster string) *CreateTableQuery {
q.onCluster = chschema.UnsafeIdent(cluster)
return q
}