浏览代码

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

xormplus 9 年之前
父节点
当前提交
3215ae1d76
共有 1 个文件被更改,包括 2 次插入0 次删除
  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.