2
0

Clarify Value.Get() documentation

Specifying behavior for Status Null and Undefined is incorrect because
a Value is not required to have a Status. In addition, standard
behavior is to return nil, not pgtype.Null when the Status is
pgtype.Null.
This commit is contained in:
Jack Christensen
2020-05-06 09:51:41 -05:00
parent 3b7c47a2a7
commit 4d2b5a18c4
+1 -2
View File
@@ -115,8 +115,7 @@ type Value interface {
// Set converts and assigns src to itself.
Set(src interface{}) error
// Get returns the simplest representation of Value. If the Value is Null or
// Undefined that is the return value. If no simpler representation is
// Get returns the simplest representation of Value. If no simpler representation is
// possible, then Get() returns Value.
Get() interface{}