Fix auto rollback #1491
This commit is contained in:
parent
71270edfcc
commit
886f293211
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue