2
0

Fix Values when there is a null

This commit is contained in:
Jack Christensen
2014-07-13 13:35:28 -05:00
parent a12b7ed6c1
commit 1027d2d014
2 changed files with 12 additions and 3 deletions
+5
View File
@@ -258,6 +258,11 @@ func (rows *Rows) Values() ([]interface{}, error) {
for _, _ = range rows.fields {
vr, _ := rows.nextColumn()
if vr.Len() == -1 {
values = append(values, nil)
continue
}
switch vr.Type().DataType {
case BoolOid:
values = append(values, decodeBool(vr))