pgconn.CommandTag is now an opaque type
It now makes a copy instead of retaining driver memory. This is in preparation to reuse the driver read buffer.
This commit is contained in:
@@ -27,7 +27,7 @@ type execer interface {
|
||||
func testExec(t *testing.T, db execer) {
|
||||
results, err := db.Exec(context.Background(), "set time zone 'America/Chicago'")
|
||||
require.NoError(t, err)
|
||||
assert.EqualValues(t, "SET", results)
|
||||
assert.EqualValues(t, "SET", results.String())
|
||||
}
|
||||
|
||||
type queryer interface {
|
||||
|
||||
Reference in New Issue
Block a user