Skip to content

Commit df9a526

Browse files
committed
fix issue #4986
1 parent 937cf0d commit df9a526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/stores/sqlx/sqlmanager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func getCachedSqlConn(driverName, server string) (*sql.DB, error) {
2727
return nil, err
2828
}
2929

30-
if driverName != mysqlDriverName {
30+
if driverName == mysqlDriverName {
3131
if cfg, e := mysql.ParseDSN(server); e != nil {
3232
// if cannot parse, don't collect the metrics
3333
logx.Error(e)

0 commit comments

Comments
 (0)