优化本地数据库关闭相关代码

This commit is contained in:
刘祥超
2023-06-23 21:50:34 +08:00
parent 7fd8d7756b
commit c10c7cc157

View File

@@ -151,6 +151,7 @@ func (this *Batch) beginTx() *sql.Tx {
tx, err := this.db.Begin()
if err != nil {
this.processErr("begin transaction", err)
this.db.EndUpdating()
return nil
}
return tx