Commit 991738ec authored by Amos Wenger's avatar Amos Wenger

Update to latest xorm.io/builder

parent a6700d47
Pipeline #14730 passed with stage
in 23 seconds
......@@ -5,9 +5,9 @@ go 1.12
require (
crawshaw.io/iox v0.0.0-20181124134642-c51c3df30797 // indirect
crawshaw.io/sqlite v0.1.2
github.com/itchio/headway v0.0.0-20190702175331-a4c65c5306de
github.com/itchio/headway v0.0.0-20191015112415-46f64dd4d524
github.com/jinzhu/inflection v1.0.0
github.com/pkg/errors v0.8.1
github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709
xorm.io/builder v0.3.5
xorm.io/builder v0.3.6
)
......@@ -4,8 +4,8 @@ import (
"reflect"
"crawshaw.io/sqlite"
"xorm.io/builder"
"github.com/pkg/errors"
"xorm.io/builder"
)
type WhereCond interface {
......@@ -24,7 +24,7 @@ func Where(cond builder.Cond) WhereCond {
return whereImpl{cond: cond}
}
func (c *Context) Update(conn *sqlite.Conn, model interface{}, where WhereCond, updates ...builder.Eq) error {
func (c *Context) Update(conn *sqlite.Conn, model interface{}, where WhereCond, updates ...builder.Cond) error {
modelType := reflect.TypeOf(model)
scope := c.ScopeMap.ByType(modelType)
if scope == nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment