Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Jan 12, 2026

@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Jan 12, 2026
@trask trask changed the title Prepared statement no sanitization Skip query sanitization for prepared statements Jan 12, 2026
@trask trask changed the title Skip query sanitization for prepared statements Skip query sanitization for prepared statements under stable semconv flag Jan 12, 2026
@trask trask force-pushed the prepared-statement-no-sanitization branch 2 times, most recently from 5c413eb to 52c940f Compare January 12, 2026 23:14
@trask trask force-pushed the prepared-statement-no-sanitization branch from d5b4e5d to de6b197 Compare January 13, 2026 01:00
trask added 3 commits January 12, 2026 17:02
PreparedStatement queries use placeholders and are already parameterized,
so they don't need sanitization. This change adds an isPreparedStatement
flag to DbRequest and SqlClientAttributesGetter to skip sanitization for
prepared statements while still sanitizing regular Statement queries.
@trask trask force-pushed the prepared-statement-no-sanitization branch from de6b197 to 02947ae Compare January 13, 2026 01:03
@trask trask force-pushed the prepared-statement-no-sanitization branch from e173f44 to 09a4532 Compare January 13, 2026 02:12
@trask trask force-pushed the prepared-statement-no-sanitization branch from 09a4532 to aca641d Compare January 13, 2026 02:26
@trask trask marked this pull request as ready for review January 13, 2026 04:44
@trask trask requested a review from a team as a code owner January 13, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant