mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 21:22:26 -05:00
[chore]: Bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.5 (#2747)
This commit is contained in:
parent
e24efcac8b
commit
d115f9ebc4
67 changed files with 515 additions and 385 deletions
11
vendor/github.com/jackc/pgx/v5/pgproto3/query.go
generated
vendored
11
vendor/github.com/jackc/pgx/v5/pgproto3/query.go
generated
vendored
|
|
@ -3,8 +3,6 @@ package pgproto3
|
|||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/jackc/pgx/v5/internal/pgio"
|
||||
)
|
||||
|
||||
type Query struct {
|
||||
|
|
@ -28,14 +26,11 @@ func (dst *Query) Decode(src []byte) error {
|
|||
}
|
||||
|
||||
// Encode encodes src into dst. dst will include the 1 byte message type identifier and the 4 byte message length.
|
||||
func (src *Query) Encode(dst []byte) []byte {
|
||||
dst = append(dst, 'Q')
|
||||
dst = pgio.AppendInt32(dst, int32(4+len(src.String)+1))
|
||||
|
||||
func (src *Query) Encode(dst []byte) ([]byte, error) {
|
||||
dst, sp := beginMessage(dst, 'Q')
|
||||
dst = append(dst, src.String...)
|
||||
dst = append(dst, 0)
|
||||
|
||||
return dst
|
||||
return finishMessage(dst, sp)
|
||||
}
|
||||
|
||||
// MarshalJSON implements encoding/json.Marshaler.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue