Bläddra i källkod

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

xormplus 9 år sedan
förälder
incheckning
3215ae1d76
1 ändrade filer med 2 tillägg och 0 borttagningar
  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.