fix bug when session resue

This commit is contained in:
Lunny Xiao 2019-01-20 12:36:28 +08:00
parent 3adc6117d5
commit 30919f63ef
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 4 deletions

View File

@ -59,9 +59,7 @@ type Session struct {
lastSQL string lastSQL string
lastSQLArgs []interface{} lastSQLArgs []interface{}
err error ctx context.Context
ctx context.Context
sessionType sessionType sessionType sessionType
} }
@ -95,7 +93,6 @@ func (session *Session) Init() {
session.lastSQLArgs = []interface{}{} session.lastSQLArgs = []interface{}{}
session.ctx = session.engine.defaultContext session.ctx = session.engine.defaultContext
session.sessionType = engineSession
} }
// Close release the connection from pool // Close release the connection from pool