pgx icon indicating copy to clipboard operation
pgx copied to clipboard

custom type unable to encode in pgx v5

Open kayon opened this issue 1 year ago • 13 comments

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

kayon avatar May 13 '23 14:05 kayon