Skip to content

Commit b5e6681

Browse files
authored
Change parameter in TestPrepStmt so no ParameterStatus is sent (#466)
* Fix TestPrepStmt against vanilla postgres * Change param so no ParameterStatus is sent
1 parent 75e94d5 commit b5e6681

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

test/xproto/proto_test.go

+3-11
Original file line numberDiff line numberDiff line change
@@ -1219,11 +1219,8 @@ func TestPrepStmt(t *testing.T) {
12191219
&pgproto3.Bind{
12201220
PreparedStatement: "pstmt1",
12211221
Parameters: [][]byte{
1222-
[]byte("client_encoding"),
1223-
// we need to set client encoding
1224-
// to non-default param, to recieve a param status
1225-
// message
1226-
[]byte("KOI8R"),
1222+
[]byte("log_statement_stats"),
1223+
[]byte("off"),
12271224
[]byte("false"),
12281225
},
12291226
},
@@ -1294,16 +1291,11 @@ func TestPrepStmt(t *testing.T) {
12941291
},
12951292

12961293
&pgproto3.DataRow{Values: [][]byte{
1297-
[]byte("KOI8R"),
1294+
[]byte("off"),
12981295
}},
12991296

13001297
&pgproto3.CommandComplete{CommandTag: []byte("SELECT 1")},
13011298

1302-
&pgproto3.ParameterStatus{
1303-
Name: "client_encoding",
1304-
Value: "KOI8R",
1305-
},
1306-
13071299
&pgproto3.ReadyForQuery{
13081300
TxStatus: 73,
13091301
},

0 commit comments

Comments
 (0)