Currently errors while data is being read are being swallowed and result in a truncated result set, this fixes that and properly returns an error and not an incomplete result.
@@ -88,6 +88,9 @@ func (session *Session) nocacheGet(beanKind reflect.Kind, table *core.Table, bea
defer rows.Close()
if !rows.Next() {
+ if rows.Err() != nil {
+ return false, rows.Err()
+ }
return false, nil
}