2
0

Use higher pgconn.FieldDescription with string Name

Instead of using pgproto3.FieldDescription through pgconn and pgx. This
lets the lowest level pgproto3 still be as memory efficient as possible.

https://github.com/jackc/pgx/pull/1281
This commit is contained in:
Jack Christensen
2022-08-20 09:54:30 -05:00
parent dbee461dc9
commit ae65a8007b
5 changed files with 66 additions and 37 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func TestConnQueryRowsFieldDescriptionsBeforeNext(t *testing.T) {
defer rows.Close()
require.Len(t, rows.FieldDescriptions(), 1)
assert.Equal(t, []byte("msg"), rows.FieldDescriptions()[0].Name)
assert.Equal(t, "msg", rows.FieldDescriptions()[0].Name)
}
func TestConnQueryWithoutResultSetCommandTag(t *testing.T) {