mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00: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