pgx
pgx copied to clipboard
custom type unable to encode in pgx v5
type Time time.Time
type Type interface {
fmt.Stringer
json.Marshaler
json.Unmarshaler
sql.Scanner
driver.Valuer
schema.GormDataTypeInterface
}
// Implemented these interfaces
var _ Type = (*Time)(nil)
...
unable to encode Time{wall:0x0, ext:0, loc:(*time.Location)(nil)} into binary format for timestamp (OID 1114): cannot find encode plan