2
0

Import fixes from pgx/pgproto3

Import and adapt commit: fbb8cce
This commit is contained in:
Jack Christensen
2019-05-03 14:07:55 -05:00
parent c116219b62
commit 4acc0f54c6
3 changed files with 11 additions and 13 deletions
+2
View File
@@ -44,6 +44,8 @@ func (src *CopyOutResponse) Encode(dst []byte) []byte {
sp := len(dst)
dst = pgio.AppendInt32(dst, -1)
dst = append(dst, src.OverallFormat)
dst = pgio.AppendUint16(dst, uint16(len(src.ColumnFormatCodes)))
for _, fc := range src.ColumnFormatCodes {
dst = pgio.AppendUint16(dst, fc)