Fix auto rollback #1491

This commit is contained in:
zxysilent 2023-01-05 21:37:45 +08:00
parent 71270edfcc
commit 886f293211
2 changed files with 0 additions and 2 deletions

View File

@ -1395,7 +1395,6 @@ func (engine *Engine) tbNameWithSchema(v string) string {
// Context creates a session with the context
func (engine *Engine) Context(ctx context.Context) *Session {
session := engine.NewSession()
session.isAutoClose = true
return session.Context(ctx)
}

View File

@ -82,7 +82,6 @@ func (eg *EngineGroup) Close() error {
// Context returned a group session
func (eg *EngineGroup) Context(ctx context.Context) *Session {
sess := eg.NewSession()
sess.isAutoClose = true
return sess.Context(ctx)
}