Upgrade xorm to v1.0.1 and fix start fail with potgres (#10819)

* upgrade xorm to v1.0.1

* fix start fail with postgres

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
Lunny Xiao
2020-03-25 22:32:23 +08:00
committed by GitHub
parent b10cb7b258
commit 73f5ca70de
25 changed files with 226 additions and 149 deletions

9
vendor/xorm.io/xorm/session.go generated vendored
View File

@ -99,7 +99,7 @@ func (session *Session) Init() {
session.engine.tagParser,
session.engine.DatabaseTZ,
)
session.db = session.engine.db
session.isAutoCommit = true
session.isCommitedOrRollbacked = false
session.isAutoClose = false
@ -140,6 +140,13 @@ func (session *Session) Close() {
}
}
func (session *Session) getQueryer() core.Queryer {
if session.tx != nil {
return session.tx
}
return session.db
}
// ContextCache enable context cache or not
func (session *Session) ContextCache(context contexts.ContextCache) *Session {
session.statement.SetContextCache(context)