2
0

Use pointer methods for all struct pgtypes

Now no need to no whether certain interfaces are implemented by struct or
pointer to struct.
This commit is contained in:
Jack Christensen
2017-04-14 13:08:05 -05:00
parent e380de7cd1
commit d94f8daeb1
67 changed files with 302 additions and 302 deletions
+3 -3
View File
@@ -129,7 +129,7 @@ func (dst *Float8) DecodeBinary(ci *ConnInfo, src []byte) error {
return nil
}
func (src Float8) EncodeText(ci *ConnInfo, w io.Writer) (bool, error) {
func (src *Float8) EncodeText(ci *ConnInfo, w io.Writer) (bool, error) {
switch src.Status {
case Null:
return true, nil
@@ -141,7 +141,7 @@ func (src Float8) EncodeText(ci *ConnInfo, w io.Writer) (bool, error) {
return false, err
}
func (src Float8) EncodeBinary(ci *ConnInfo, w io.Writer) (bool, error) {
func (src *Float8) EncodeBinary(ci *ConnInfo, w io.Writer) (bool, error) {
switch src.Status {
case Null:
return true, nil
@@ -174,7 +174,7 @@ func (dst *Float8) Scan(src interface{}) error {
}
// Value implements the database/sql/driver Valuer interface.
func (src Float8) Value() (driver.Value, error) {
func (src *Float8) Value() (driver.Value, error) {
switch src.Status {
case Present:
return src.Float, nil