refactor(mysql): strip trailing semicolon on unlimited query path for connector consistency - #2595
Conversation
Match LIMIT and EXPLAIN composition when no limit is applied.
WalkthroughChangesMySQL query terminator normalization
Estimated code review effort: 2 (Simple) | ~10 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 |
Code reviewNo blocking issues. The change is correct — 1. This is a consistency change, not a fix. 2. Dead assertion in the new test. WrenAI/core/wren/tests/unit/test_mysql_semicolon_unlimited.py Lines 42 to 45 in f27b6f3
|
|
Thanks @goldmedal — both spot-on.
|
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>
Summary
Strip trailing semicolons on MySQL unlimited queries.
Motivation
LIMIT and EXPLAIN already stripped; unlimited left terminators intact.
Verification
Summary by CodeRabbit
Bug Fixes
LIMITwhen specified.Tests