mirror of
https://gitee.com/gitea/gitea
synced 2025-12-08 09:10:27 +08:00
Upgrade xorm to v1.1.0 (#15869)
This commit is contained in:
5
vendor/xorm.io/xorm/session_tx.go
generated
vendored
5
vendor/xorm.io/xorm/session_tx.go
generated
vendored
@@ -84,3 +84,8 @@ func (session *Session) Commit() error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// IsInTx if current session is in a transaction
|
||||
func (session *Session) IsInTx() bool {
|
||||
return !session.isAutoCommit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user