Skip to content

Commit d055e2b

Browse files
committed
Quote in drop as well
1 parent 90273fe commit d055e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/clickhouse/clickhouse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func (ch *ClickHouse) ensureVersionTable() (err error) {
259259
}
260260

261261
func (ch *ClickHouse) Drop() (err error) {
262-
query := "SHOW TABLES FROM " + ch.config.DatabaseName
262+
query := "SHOW TABLES FROM \"" + ch.config.DatabaseName + "\""
263263
tables, err := ch.conn.Query(query)
264264

265265
if err != nil {

0 commit comments

Comments
 (0)