Expose wrap functions on ConnInfo
- Remove rarely used ScanPlan.Scan arguments - Plus other refactorings and fixes that fell out of this change. - Plus rows Scan now handles checking for changed type.
This commit is contained in:
@@ -52,6 +52,6 @@ func TestTimestampCodecDecodeTextInvalid(t *testing.T) {
|
||||
c := &pgtype.TimestampCodec{}
|
||||
var ts pgtype.Timestamp
|
||||
plan := c.PlanScan(nil, pgtype.TimestampOID, pgtype.TextFormatCode, &ts, false)
|
||||
err := plan.Scan(nil, pgtype.TimestampOID, pgtype.TextFormatCode, []byte(`eeeee`), &ts)
|
||||
err := plan.Scan([]byte(`eeeee`), &ts)
|
||||
require.Error(t, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user