Browse Source

fix: 修改部分错误代码 (#2673)

release-1.7
zhengkunwang 1 year ago committed by wanghe-fit2cloud
parent
commit
354f0d0753
  1. 2
      backend/utils/mysql/client/remote.go

2
backend/utils/mysql/client/remote.go

@ -279,7 +279,7 @@ func (r *Remote) SyncDB(version string) ([]SyncDBInfo, error) {
if err = rows.Scan(&dbName, &charsetName); err != nil { if err = rows.Scan(&dbName, &charsetName); err != nil {
return datas, err return datas, err
} }
if dbName == "information_schema" || dbName == "mysql" || dbName == "performance_schema" || dbName == "sys" || dbName == "__recycle_bin__" || parts[0] == "recycle_bin" { if dbName == "information_schema" || dbName == "mysql" || dbName == "performance_schema" || dbName == "sys" || dbName == "__recycle_bin__" || dbName == "recycle_bin" {
continue continue
} }
dataItem := SyncDBInfo{ dataItem := SyncDBInfo{

Loading…
Cancel
Save