mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Altered chunkreader to never reuse memory. Altered pgproto3 to to copy memory when decoding. Renamed UnmarshalBinary to Decode because of changed semantics.
14 lines
301 B
Go
14 lines
301 B
Go
package pgproto3
|
|
|
|
type NoticeResponse ErrorResponse
|
|
|
|
func (*NoticeResponse) Backend() {}
|
|
|
|
func (dst *NoticeResponse) Decode(src []byte) error {
|
|
return (*ErrorResponse)(dst).Decode(src)
|
|
}
|
|
|
|
func (src *NoticeResponse) MarshalBinary() ([]byte, error) {
|
|
return (*ErrorResponse)(src).marshalBinary('N')
|
|
}
|