Skip to content

Conversation

@laurit
Copy link
Contributor

@laurit laurit commented Dec 9, 2025

Some sql databases allow placing string literals in double quotes. Other databases use double quotes for quoting identifiers (ansi standard uses that). Or sql sanitizer is not sophisticated enough to deduce from context whether a double quoted substring could represent a literal or an identifier so we must err on the side of caution and sanitize the double quoted strings unless we know that query is executed on a database that does not support double quoted string literals e.g. postgres.

@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Dec 9, 2025
Comment on lines +28 to +33
"oracle",
"h2",
"hsqldb",
"db2",
"derby",
"hanadb"));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

google ai believes that these dbs don't support string literals in double quotes

@laurit laurit marked this pull request as ready for review December 9, 2025 14:38
@laurit laurit requested a review from a team as a code owner December 9, 2025 14:38
@laurit laurit added this to the v2.23.0 milestone Dec 9, 2025
@trask trask removed this from the v2.23.0 milestone Dec 12, 2025
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.

2 participants