Commit 703414bf authored by gwenn's avatar gwenn

Fix bug when scanning unsigned int.

parent 5ef4271c
......@@ -740,9 +740,9 @@ func (s *Stmt) ScanReflect(index int, v interface{}) (bool, error) {
i, isNull, err = s.ScanInt64(index)
if err == nil {
if i < 0 {
dv.SetUint(uint64(i))
} else {
err = s.specificError("negative value: %d", i)
} else {
dv.SetUint(uint64(i))
}
}
case reflect.Bool:
......
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