From 6fc16d96c738f674d897c4d5cffb506c169a0416 Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Sun, 29 Nov 2015 21:59:42 -0800 Subject: [PATCH] fix copy/paste doc mistakes refer to the correct field names in docs for for all nullable types --- values.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/values.go b/values.go index e894618b..d4c2b390 100644 --- a/values.go +++ b/values.go @@ -208,7 +208,7 @@ func (n NullFloat64) Encode(w *WriteBuf, oid Oid) error { // If Valid is false then the value is NULL. type NullString struct { String string - Valid bool // Valid is true if Int64 is not NULL + Valid bool // Valid is true if String is not NULL } func (s *NullString) Scan(vr *ValueReader) error { @@ -281,7 +281,7 @@ func (n NullInt16) Encode(w *WriteBuf, oid Oid) error { // If Valid is false then the value is NULL. type NullInt32 struct { Int32 int32 - Valid bool // Valid is true if Int64 is not NULL + Valid bool // Valid is true if Int32 is not NULL } func (n *NullInt32) Scan(vr *ValueReader) error {