mirror of https://github.com/perkeep/perkeep.git
reflect NewValue -> ValueOf (latest Go changes)
This commit is contained in:
parent
0be615f6ee
commit
d02b3e8d1b
3
build.pl
3
build.pl
|
@ -408,8 +408,9 @@ TARGET: lib/go/camli/jsonconfig
|
|||
TARGET: lib/go/camli/jsonsign
|
||||
TARGET: lib/go/camli/lru
|
||||
TARGET: lib/go/camli/magic
|
||||
TARGET: lib/go/camli/misc/httprange
|
||||
TARGET: lib/go/camli/misc/amazon/s3
|
||||
TARGET: lib/go/camli/misc/httprange
|
||||
TARGET: lib/go/camli/misc/runas
|
||||
TARGET: lib/go/camli/mysqlindexer
|
||||
TARGET: lib/go/camli/netutil
|
||||
TARGET: lib/go/camli/osutil
|
||||
|
|
|
@ -195,7 +195,7 @@ func (s *Statement) BindParams(params ...interface{}) (err os.Error) {
|
|||
d = append(d, param.([]byte)...)
|
||||
// Other types
|
||||
default:
|
||||
return &ClientError{CR_UNSUPPORTED_PARAM_TYPE, s.c.fmtError(CR_UNSUPPORTED_PARAM_TYPE_STR, reflect.NewValue(param).Type(), k)}
|
||||
return &ClientError{CR_UNSUPPORTED_PARAM_TYPE, s.c.fmtError(CR_UNSUPPORTED_PARAM_TYPE_STR, reflect.ValueOf(param).Type(), k)}
|
||||
}
|
||||
// Append values
|
||||
s.paramType = append(s.paramType, []byte{byte(t), 0x0})
|
||||
|
|
Loading…
Reference in New Issue