correctly encode CopyInResponse's format field
This commit is contained in:
@@ -48,6 +48,7 @@ func (src *CopyInResponse) Encode(dst []byte) []byte {
|
|||||||
sp := len(dst)
|
sp := len(dst)
|
||||||
dst = pgio.AppendInt32(dst, -1)
|
dst = pgio.AppendInt32(dst, -1)
|
||||||
|
|
||||||
|
dst = append(dst, src.OverallFormat)
|
||||||
dst = pgio.AppendUint16(dst, uint16(len(src.ColumnFormatCodes)))
|
dst = pgio.AppendUint16(dst, uint16(len(src.ColumnFormatCodes)))
|
||||||
for _, fc := range src.ColumnFormatCodes {
|
for _, fc := range src.ColumnFormatCodes {
|
||||||
dst = pgio.AppendUint16(dst, fc)
|
dst = pgio.AppendUint16(dst, fc)
|
||||||
|
|||||||
Reference in New Issue
Block a user