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.
Merge pull request MaterializeInc#14161 from mjibson/pgtest-params
pgtest: test invalid param binding
- Loading branch information
Showing
2 changed files
with
15 additions
and
6 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,14 @@ | ||
# Test that invalid query params are rejected. | ||
|
||
send | ||
Parse {"query": "SELECT $1 + 1"} | ||
Bind {"values": ["a"]} | ||
Sync | ||
---- | ||
|
||
until err_field_typs=S | ||
ReadyForQuery | ||
---- | ||
ParseComplete | ||
ErrorResponse {"fields":[{"typ":"S","value":"ERROR"}]} | ||
ReadyForQuery {"status":"I"} |