Skip to content

Commit

Permalink
Remove use of mysql.MySQLWarnings
Browse files Browse the repository at this point in the history
It was removed from the upstream mysql package in
go-sql-driver/mysql#676
  • Loading branch information
scottjg authored Oct 3, 2017
1 parent c2d3691 commit b7c6484
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ 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 {
return err
}
r := driver.db.QueryRow("SELECT data_type FROM information_schema.columns where table_name = ? and column_name = 'version'", tableName)
dataType := ""
if err := r.Scan(&dataType); err != nil {
Expand Down

0 comments on commit b7c6484

Please sign in to comment.