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
+1 -1
View File
@@ -80,7 +80,7 @@ func testWithAndWithoutPreferSimpleProtocol(t *testing.T, f func(t *testing.T, d
config, err := pgx.ParseConfig(os.Getenv("PGX_TEST_DATABASE"))
require.NoError(t, err)
config.PreferSimpleProtocol = true
config.DefaultQueryExecMode = pgx.QueryExecModeSimpleProtocol
db := stdlib.OpenDB(*config)
defer func() {
err := db.Close()