Skip to content

Improve identifier and string escaping in the legacy driver#321

Draft
JanJakes wants to merge 2 commits intotrunkfrom
translator-escaping-fixes
Draft

Improve identifier and string escaping in the legacy driver#321
JanJakes wants to merge 2 commits intotrunkfrom
translator-escaping-fixes

Conversation

@JanJakes
Copy link
Member

@JanJakes JanJakes commented Feb 13, 2026

Improve escaping consistency in the legacy SQLite translator:

  • Use quote_identifier() for all identifier interpolations (table names, column names, index names, trigger names) in SQL queries, token values, and DDL reconstruction output.
  • Use parameterized queries and PDO::quote() for all string literals processed by the translator.

See added tests for more details.

@JanJakes JanJakes force-pushed the translator-escaping-fixes branch from 86ea87d to d02b6d1 Compare February 13, 2026 16:19
@JanJakes JanJakes force-pushed the translator-escaping-fixes branch from d02b6d1 to b260d23 Compare March 3, 2026 16:25
@JanJakes JanJakes changed the title Escape all identifier interpolations in the legacy SQLite translator Improve identifier and string escaping in the legacy SQLite translator Mar 3, 2026
@JanJakes JanJakes changed the title Improve identifier and string escaping in the legacy SQLite translator Improve identifier and string escaping in the legacy driver Mar 3, 2026
Use parameterized queries and PDO::quote() consistently for all string
literals processed by the translator.
@JanJakes JanJakes force-pushed the translator-escaping-fixes branch from b260d23 to 2f325db Compare March 3, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant