Procházet zdrojové kódy

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

xormplus před 9 roky
rodič
revize
3215ae1d76
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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.