Skip to content

Commit

Permalink
Fix erroneous test case
Browse files Browse the repository at this point in the history
The sanitizer does not rewrite the query portions of the query only the
parameters.
  • Loading branch information
jackc committed Mar 4, 2024
1 parent f94eb0e commit 0bf9ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sanitize/sanitize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestQuerySanitize(t *testing.T) {
{
query: sanitize.Query{Parts: []sanitize.Part{"select 42"}},
args: []interface{}{},
expected: `select (42)`,
expected: `select 42`,
},
{
query: sanitize.Query{Parts: []sanitize.Part{"select ", 1}},
Expand Down

0 comments on commit 0bf9ac3

Please sign in to comment.