diff options
Diffstat (limited to 'vendor/github.com/go-sql-driver/mysql/utils_go18.go')
-rw-r--r-- | vendor/github.com/go-sql-driver/mysql/utils_go18.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/go-sql-driver/mysql/utils_go18.go b/vendor/github.com/go-sql-driver/mysql/utils_go18.go index 7d8c9b16e..c35c2a6aa 100644 --- a/vendor/github.com/go-sql-driver/mysql/utils_go18.go +++ b/vendor/github.com/go-sql-driver/mysql/utils_go18.go @@ -15,6 +15,7 @@ import ( "database/sql" "database/sql/driver" "errors" + "fmt" ) func cloneTLSConfig(c *tls.Config) *tls.Config { @@ -44,6 +45,6 @@ func mapIsolationLevel(level driver.IsolationLevel) (string, error) { case sql.LevelSerializable: return "SERIALIZABLE", nil default: - return "", errors.New("mysql: unsupported isolation level: " + string(level)) + return "", fmt.Errorf("mysql: unsupported isolation level: %v", level) } } |