mirror of https://github.com/jackc/pgx.git
Remove unused ScannerV3
parent
77c57c780d
commit
b0cd63bcf0
9
query.go
9
query.go
|
@ -221,15 +221,6 @@ func (rows *Rows) Scan(dest ...interface{}) (err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
rows.Fatal(scanArgError{col: i, err: err})
|
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 {
|
} else if s, ok := d.(pgtype.BinaryDecoder); ok && vr.Type().FormatCode == BinaryFormatCode {
|
||||||
err = s.DecodeBinary(vr.bytes())
|
err = s.DecodeBinary(vr.bytes())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -204,10 +204,6 @@ type Encoder interface {
|
||||||
FormatCode() int16
|
FormatCode() int16
|
||||||
}
|
}
|
||||||
|
|
||||||
type ScannerV3 interface {
|
|
||||||
ScanPgxV3(fieldDescription interface{}, src interface{}) error
|
|
||||||
}
|
|
||||||
|
|
||||||
// NullFloat32 represents an float4 that may be null. NullFloat32 implements the
|
// 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
|
// Scanner and Encoder interfaces so it may be used both as an argument to
|
||||||
// Query[Row] and a destination for Scan.
|
// Query[Row] and a destination for Scan.
|
||||||
|
|
Loading…
Reference in New Issue