session add method IsInTx #1863

Merged
lunny merged 1 commits from whybangbang/xorm:add_IsInTx into master 2021-02-03 15:27:18 +00:00
Contributor
No description provided.
lunny reviewed 2021-02-03 07:28:56 +00:00
Dismissed
session_tx.go Outdated
@ -87,0 +87,4 @@
// if current session is in a transaction
func (session *Session) IsInTx() bool {
if !session.isAutoCommit {
Owner

return !session.isAutoCommit

return !session.isAutoCommit
whybangbang marked this conversation as resolved
whybangbang force-pushed add_IsInTx from 2772e09548 to ac11d96032 2021-02-03 12:40:37 +00:00 Compare
Author
Contributor

updated

updated
lunny approved these changes 2021-02-03 15:26:59 +00:00
Dismissed
lunny merged commit ffac8e3577 into master 2021-02-03 15:27:08 +00:00
Sign in to join this conversation.
No description provided.