Skip to content

Commit b7c6484

Browse files
authored
Remove use of mysql.MySQLWarnings
It was removed from the upstream mysql package in go-sql-driver/mysql#676
1 parent c2d3691 commit b7c6484

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: mysql.go

-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ func (driver *Driver) Close() error {
8989
func (driver *Driver) ensureVersionTableExists() error {
9090
_, err := driver.db.Exec("CREATE TABLE IF NOT EXISTS " + tableName + " (version bigint not null primary key);")
9191

92-
if _, isWarn := err.(mysql.MySQLWarnings); err != nil && !isWarn {
93-
return err
94-
}
9592
r := driver.db.QueryRow("SELECT data_type FROM information_schema.columns where table_name = ? and column_name = 'version'", tableName)
9693
dataType := ""
9794
if err := r.Scan(&dataType); err != nil {

0 commit comments

Comments
 (0)