fix bug when session resue
This commit is contained in:
parent
3adc6117d5
commit
30919f63ef
|
@ -59,9 +59,7 @@ type Session struct {
|
|||
lastSQL string
|
||||
lastSQLArgs []interface{}
|
||||
|
||||
err error
|
||||
ctx context.Context
|
||||
|
||||
sessionType sessionType
|
||||
}
|
||||
|
||||
|
@ -95,7 +93,6 @@ func (session *Session) Init() {
|
|||
session.lastSQLArgs = []interface{}{}
|
||||
|
||||
session.ctx = session.engine.defaultContext
|
||||
session.sessionType = engineSession
|
||||
}
|
||||
|
||||
// Close release the connection from pool
|
||||
|
|
Loading…
Reference in New Issue