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:
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user