Remove unused ScannerV3

v3-numeric-wip
Jack Christensen 2017-03-11 15:44:21 -06:00
parent 77c57c780d
commit b0cd63bcf0
2 changed files with 0 additions and 13 deletions

View File

@ -221,15 +221,6 @@ func (rows *Rows) Scan(dest ...interface{}) (err error) {
if err != nil {
rows.Fatal(scanArgError{col: i, err: err})
}
} else if s, ok := d.(ScannerV3); ok {
val, err := decodeByOID(vr)
if err != nil {
rows.Fatal(scanArgError{col: i, err: err})
}
err = s.ScanPgxV3(nil, val)
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 {

View File

@ -204,10 +204,6 @@ type Encoder interface {
FormatCode() int16
}
type ScannerV3 interface {
ScanPgxV3(fieldDescription interface{}, src interface{}) error
}
// NullFloat32 represents an float4 that may be null. NullFloat32 implements the
// Scanner and Encoder interfaces so it may be used both as an argument to
// Query[Row] and a destination for Scan.