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:
@@ -115,8 +115,7 @@ type Value interface {
|
|||||||
// Set converts and assigns src to itself.
|
// Set converts and assigns src to itself.
|
||||||
Set(src interface{}) error
|
Set(src interface{}) error
|
||||||
|
|
||||||
// Get returns the simplest representation of Value. If the Value is Null or
|
// Get returns the simplest representation of Value. If no simpler representation is
|
||||||
// Undefined that is the return value. If no simpler representation is
|
|
||||||
// possible, then Get() returns Value.
|
// possible, then Get() returns Value.
|
||||||
Get() interface{}
|
Get() interface{}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user