소스 검색

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

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.