parent
d70af38447
commit
a920fcfd91
10 changed files with 172 additions and 74 deletions
|
@ -25,7 +25,7 @@ func GetXORMEngine(engine ...*xorm.Engine) (x *xorm.Engine) {
|
|||
if len(engine) == 1 {
|
||||
return engine[0]
|
||||
}
|
||||
return db.DefaultContext.(*db.Context).Engine().(*xorm.Engine)
|
||||
return db.GetEngine(db.DefaultContext).(*xorm.Engine)
|
||||
}
|
||||
|
||||
// InitFixtures initialize test fixtures for a test database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue