Skip to content

fix(prestodb-driver): use standard SQL escaping for single quotes#11171

Open
benyaminsalimi wants to merge 1 commit into
cube-js:masterfrom
benyaminsalimi:fix/presto-escaping-issue-10545
Open

fix(prestodb-driver): use standard SQL escaping for single quotes#11171
benyaminsalimi wants to merge 1 commit into
cube-js:masterfrom
benyaminsalimi:fix/presto-escaping-issue-10545

Conversation

@benyaminsalimi

Copy link
Copy Markdown
Contributor

Check List

  • Tests have been run in packages where changes have been made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves

Resolves #10545

Description of Changes Made (if issue reference is not provided)

PrestoDriver.prepareQueryWithParams uses standard SQL escaping for single quotes (doubling single quotes) instead of MySQL-style backslash escaping, since Presto and Trino do not use backslashes to escape characters inside standard string literals.

@benyaminsalimi benyaminsalimi requested a review from a team as a code owner June 26, 2026 22:41
@github-actions github-actions Bot added driver:prestodb Issues relating to the PrestoDB driver javascript Pull requests that update Javascript code data source driver pr:community Contribution from Cube.js community members. labels Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data source driver driver:prestodb Issues relating to the PrestoDB driver javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PrestoDriver.prepareQueryWithParams uses MySQL-style escaping, breaks Trino/Presto with single quotes

1 participant