Skip to content

Commit 9b3c0dc

Browse files
author
Fabian Holler
committed
driver: fix: driver/mysql/mysql.go:89:23: undefined: mysql.MySQLWarnings
compilation failed with: driver: fix: driver/mysql/mysql.go:89:23: undefined: mysql.MySQLWarnings MySQLWarnings was removed from the mysql driver (go-sql-driver/mysql#676), remove it from migrate
1 parent 0e161f4 commit 9b3c0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/mysql/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (driver *Driver) Close() error {
8686
func (driver *Driver) ensureVersionTableExists() error {
8787
_, err := driver.db.Exec("CREATE TABLE IF NOT EXISTS " + tableName + " (version bigint not null primary key);")
8888

89-
if _, isWarn := err.(mysql.MySQLWarnings); err != nil && !isWarn {
89+
if err != nil {
9090
return err
9191
}
9292
r := driver.db.QueryRow("SELECT data_type FROM information_schema.columns where table_name = ? and column_name = 'version'", tableName)

0 commit comments

Comments
 (0)