Ver Fonte

修正内部事务调用方法

WhiteBatman há 9 anos atrás
pai
commit
f5acafe652
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      session.go

+ 1 - 1
session.go

@@ -539,7 +539,7 @@ func (session *Session) exec(sqlStr string, args ...interface{}) (sql.Result, er
 		if session.IsAutoCommit {
 			// FIXME: oci8 can not auto commit (github.com/mattn/go-oci8)
 			if session.Engine.dialect.DBType() == core.ORACLE {
-				session.Begin()
+				session.begin()
 				r, err := session.Tx.Exec(sqlStr, args...)
 				session.commit()
 				return r, err