|
|
@ -193,6 +193,10 @@ func (impl *DBServiceImplement) UpdateOne(entity *model.DB) error { |
|
|
|
err = driver.InitDriver(*entity) |
|
|
|
if err != nil { |
|
|
|
_ = session.Rollback() |
|
|
|
innerErr := driver.InitDriver(*record) |
|
|
|
if innerErr != nil { |
|
|
|
return grmi.NewBusinessError("初始化原数据库失败, error:" + err.Error()) |
|
|
|
} |
|
|
|
return err |
|
|
|
} |
|
|
|
_ = session.Commit() |
|
|
|