Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
driver: fix: driver/mysql/mysql.go:89:23: undefined: mysql.MySQLWarnings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fho committed Oct 27, 2017
1 parent 0e161f4 commit 82c0193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (driver *Driver) Close() error {
func (driver *Driver) ensureVersionTableExists() error {
_, err := driver.db.Exec("CREATE TABLE IF NOT EXISTS " + tableName + " (version bigint not null primary key);")

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

0 comments on commit 82c0193

Please sign in to comment.