fix(athena-driver): Correct SQL parameter escaping - #11370
Conversation
|
Claude finished @ovr's task in 54s —— View job Code reviewVerdict: LGTM — clean parallel to #11345 (trino/prestodb), well-tested. Detailed review (0 blocking, 0 medium, 2 nits)SummaryReplaces Code quality
Security
TestingCoverage is strong. Ten cases exercise: LIKE escape sequence preservation, no double-escape of backslashes, quote injection, backslash-then-quote, trailing backslash (previously broke the literal), literal Nits (non-blocking)
|
1b7d3f9 to
8b78b68
Compare
|
Claude finished @ovr's task in 36s —— View job Code reviewVerdict: LGTM — 0 blocking, 0 medium, 2 nits. No changes since prior review (same single commit Detailed review
SummaryReplaces Code quality
Security
TestingTen cases exercise: LIKE escape sequence preservation, no double-escape of backslashes, quote injection, backslash-then-quote, trailing backslash (previously broke the literal), literal Nits (non-blocking)
|
| const queryString = applyParams( | ||
| query, | ||
| (values || []).map(s => (typeof s === 'string' ? { | ||
| toSqlString: () => SqlString.escape(s).replace(/\\\\([_%])/g, '\\$1').replace(/\\'/g, '\'\'') |
There was a problem hiding this comment.
Similar issue to what I've fixed in trino/presto
(cherry picked from commit 5ad0041)
(cherry picked from commit 5ad0041)
No description provided.