mirror of https://github.com/jackc/pgx.git
Fix Bind Decode to advance rp
parent
d2d99eac65
commit
413871a897
|
@ -52,6 +52,7 @@ func (dst *Bind) Decode(src []byte) error {
|
|||
return &invalidMessageFormatErr{messageType: "Bind"}
|
||||
}
|
||||
parameterCount := int(binary.BigEndian.Uint16(src[rp:]))
|
||||
rp += 2
|
||||
|
||||
dst.Parameters = make([][]byte, parameterCount)
|
||||
|
||||
|
|
Loading…
Reference in New Issue