Browse Source

新增回滚点属性,支持嵌套事务内部子事务回滚整个嵌套事务

xormplus 9 năm trước cách đây
mục cha
commit
3215ae1d76
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      session.go

+ 2 - 0
session.go

@@ -55,6 +55,8 @@ type Session struct {
 	//beforeSQLExec func(string, ...interface{})
 	lastSQL     string
 	lastSQLArgs []interface{}
+
+	rollbackSavePointID string
 }
 
 // Clone copy all the session's content and return a new session.