chore: code style
This commit is contained in:
parent
f43c523548
commit
d093b4b06a
@ -619,7 +619,6 @@ func (db *DB) Transaction(fc func(tx *DB) error, opts ...*sql.TxOptions) (err er
|
|||||||
// nested transaction
|
// nested transaction
|
||||||
if !db.DisableNestedTransaction && (!db.PrepareStmt ||
|
if !db.DisableNestedTransaction && (!db.PrepareStmt ||
|
||||||
(db.PrepareStmt && !db.DisablePrepareNestedTransaction)) {
|
(db.PrepareStmt && !db.DisablePrepareNestedTransaction)) {
|
||||||
|
|
||||||
err = db.SavePoint(fmt.Sprintf("sp%p", fc)).Error
|
err = db.SavePoint(fmt.Sprintf("sp%p", fc)).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user