2
0

Remove old Scanner and Encoder system

This commit is contained in:
Jack Christensen
2017-03-12 17:22:04 -05:00
parent 7bb1f3677d
commit 26d57356f7
7 changed files with 41 additions and 807 deletions
-10
View File
@@ -211,16 +211,6 @@ func (rows *Rows) Scan(dest ...interface{}) (err error) {
*b = nil
}
}
} else if s, ok := d.(Scanner); ok {
err = s.Scan(vr)
if err != nil {
rows.Fatal(scanArgError{col: i, err: err})
}
} else if s, ok := d.(PgxScanner); ok {
err = s.ScanPgx(vr)
if err != nil {
rows.Fatal(scanArgError{col: i, err: err})
}
} else if s, ok := d.(pgtype.BinaryDecoder); ok && vr.Type().FormatCode == BinaryFormatCode {
err = s.DecodeBinary(vr.bytes())
if err != nil {