mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-24 18:10:52 +00:00
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:
parent
b10cb7b258
commit
73f5ca70de
25 changed files with 226 additions and 149 deletions
8
vendor/xorm.io/xorm/dialects/driver.go
generated
vendored
8
vendor/xorm.io/xorm/dialects/driver.go
generated
vendored
|
@ -6,8 +6,6 @@ package dialects
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"xorm.io/xorm/core"
|
||||
)
|
||||
|
||||
type Driver interface {
|
||||
|
@ -53,11 +51,7 @@ func OpenDialect(driverName, connstr string) (Dialect, error) {
|
|||
return nil, fmt.Errorf("Unsupported dialect type: %v", uri.DBType)
|
||||
}
|
||||
|
||||
db, err := core.Open(driverName, connstr)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
dialect.Init(db, uri)
|
||||
dialect.Init(uri)
|
||||
|
||||
return dialect, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue