Skip to content

Commit

Permalink
pkg/driver/mysql: use single quotes to satisfy the ANSI_QUOTE mode (#475
Browse files Browse the repository at this point in the history
)
  • Loading branch information
toru authored Nov 15, 2023
1 parent 1658a46 commit 5386efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (drv *Driver) DatabaseExists() (bool, error) {
// MigrationsTableExists checks if the schema_migrations table exists
func (drv *Driver) MigrationsTableExists(db *sql.DB) (bool, error) {
match := ""
err := db.QueryRow(fmt.Sprintf("SHOW TABLES LIKE \"%s\"",
err := db.QueryRow(fmt.Sprintf("show tables like '%s'",
drv.migrationsTableName)).
Scan(&match)
if err == sql.ErrNoRows {
Expand Down

0 comments on commit 5386efb

Please sign in to comment.