fix bug when session resue
This commit is contained in:
parent
3adc6117d5
commit
30919f63ef
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue