reflect NewValue -> ValueOf (latest Go changes)

This commit is contained in:
Brad Fitzpatrick 2011-04-25 18:19:48 -07:00
parent 0be615f6ee
commit d02b3e8d1b
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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})