2
0

Tweak handling of reading null as raw bytes.

* NULL maps to nil not empty slice
* Handle NULL in Scan not ReadBytes
This commit is contained in:
Jack Christensen
2014-12-23 21:58:48 -06:00
parent e616eb0783
commit daf2efa313
3 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -113,7 +113,8 @@ func (r *ValueReader) ReadBytes(count int32) []byte {
return nil
}
if count == -1 {
if count < 0 {
r.Fatal(errors.New("count must not be negative"))
return nil
}