2
0

Initial restructure of simple protocol to query exec mode

This commit is contained in:
Jack Christensen
2022-03-05 10:27:15 -06:00
parent 2885b039d5
commit aad3d65e16
9 changed files with 107 additions and 67 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ func TestLargeObjects(t *testing.T) {
testLargeObjects(t, ctx, tx)
}
func TestLargeObjectsPreferSimpleProtocol(t *testing.T) {
func TestLargeObjectsSimpleProtocol(t *testing.T) {
t.Parallel()
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
@@ -43,7 +43,7 @@ func TestLargeObjectsPreferSimpleProtocol(t *testing.T) {
t.Fatal(err)
}
config.PreferSimpleProtocol = true
config.DefaultQueryExecMode = pgx.QueryExecModeSimpleProtocol
conn, err := pgx.ConnectConfig(ctx, config)
if err != nil {