refactor(mssql): strip trailing semicolon on unlimited query path for connector consistency - #2633
refactor(mssql): strip trailing semicolon on unlimited query path for connector consistency#2633Bartok9 wants to merge 1 commit into
Conversation
Align unlimited `_raw_cursor_sql` with dry_run/limit composition and sibling connectors (Canner#2595). Not claimed as a pyodbc lone-terminator failure — consistency only. Signed-off-by: Bartok9 <danielrpike9@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
WalkthroughThe MSSQL connector now strips trailing semicolons for unlimited SQL. The unit test verifies removal for SQL with one or multiple trailing semicolons. ChangesMSSQL semicolon normalization
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
|
@goldmedal — redesigned follow-up to closed #2566 after your review:
Please re-review when your queue allows. Thanks again for pushing for the honest framing. |
Summary
Strip trailing semicolons on the MSSQL unlimited
_raw_cursor_sqlpath so it matches dry_run / limited composition and sibling connectors (e.g. #2595 MySQL).Context (replaces closed #2566)
@goldmedal correctly challenged #2566: that PR reversed a deliberate
"execute path allows it"test without a pyodbc failure case, and a lone trailing;is accepted by pyodbc. Agreed.This PR is the same code change re-framed honestly as a consistency refactor (title + body + test comments), rebased onto current
main.What changed since the "allows it" test
strip_trailing_semicolon).;.Verification
@goldmedal ready for review when convenient — thank you again for the careful catch on framing.
Summary by CodeRabbit