forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pgwire: update all callsites to use new send implementation
In some cases I had to explicitly clone some objects to please the borrow checker, as the new `send` has to get a mutable ref to coord_client/session.
- Loading branch information
Showing
2 changed files
with
90 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Test logic related to filtering which messages are sent to clients based on severity levels | ||
|
||
# Check default behavior | ||
send | ||
Query {"query": "COMMIT"} | ||
---- | ||
|
||
until | ||
ReadyForQuery | ||
---- | ||
NoticeResponse {"fields":[{"typ":"S","value":"WARNING"},{"typ":"C","value":"25P01"},{"typ":"M","value":"there is no transaction in progress"}]} | ||
CommandComplete {"tag":"COMMIT"} | ||
ReadyForQuery {"status":"I"} | ||
|
||
|
||
# Change client_min_messages and see that NoticeResponse is missing | ||
send | ||
Query {"query": "SET client_min_messages = ERROR"} | ||
Query {"query": "COMMIT"} | ||
---- | ||
|
||
until | ||
ReadyForQuery | ||
ReadyForQuery | ||
---- | ||
CommandComplete {"tag":"SET"} | ||
ReadyForQuery {"status":"I"} | ||
CommandComplete {"tag":"COMMIT"} | ||
ReadyForQuery {"status":"I"} |