We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31791ad commit 90273feCopy full SHA for 90273fe
database/clickhouse/clickhouse.go
@@ -220,7 +220,7 @@ func (ch *ClickHouse) ensureVersionTable() (err error) {
220
221
var (
222
table string
223
- query = "SHOW TABLES FROM " + ch.config.DatabaseName + " LIKE '" + ch.config.MigrationsTable + "'"
+ query = "SHOW TABLES FROM \"" + ch.config.DatabaseName + "\" LIKE '" + ch.config.MigrationsTable + "'"
224
)
225
// check if migration table exists
226
if err := ch.conn.QueryRow(query).Scan(&table); err != nil {
0 commit comments