Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change parameter in TestPrepStmt so no ParameterStatus is sent #466

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions test/xproto/proto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1219,11 +1219,8 @@ func TestPrepStmt(t *testing.T) {
&pgproto3.Bind{
PreparedStatement: "pstmt1",
Parameters: [][]byte{
[]byte("client_encoding"),
// we need to set client encoding
// to non-default param, to recieve a param status
// message
[]byte("KOI8R"),
[]byte("log_statement_stats"),
[]byte("off"),
[]byte("false"),
},
},
Expand Down Expand Up @@ -1294,16 +1291,11 @@ func TestPrepStmt(t *testing.T) {
},

&pgproto3.DataRow{Values: [][]byte{
[]byte("KOI8R"),
[]byte("off"),
}},

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

&pgproto3.ParameterStatus{
Name: "client_encoding",
Value: "KOI8R",
},

&pgproto3.ReadyForQuery{
TxStatus: 73,
},
Expand Down