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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user