fix(pg): escape quoting within formatted string values#61
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughString literal formatting for PostgreSQL was changed to escape embedded single quotes by doubling them before surrounding with single-quote delimiters. A unit test was added to validate escaping behavior and a SQL translation test case containing embedded quotes was included. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
kpom-specter
left a comment
There was a problem hiding this comment.
Approved with much sadness, as we should be using: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-DOLLAR-QUOTING
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
zinic
left a comment
There was a problem hiding this comment.
We'll come back to this but this closes the gap - ty
Description
Escapes single quotes within formatted string values
Resolves: BED-7946
Type of Change
Testing
go test -tags manual_integration ./integration/...)Screenshots (if appropriate):
Driver Impact
drivers/pg)drivers/neo4j)Checklist
go.mod/go.sumare up to date if dependencies changedSummary by CodeRabbit
Bug Fixes
Tests