Repository navigation
fix(cli,mcp,transpiler): make watch honour --dialect, add parse_sql dialect, rewrite SQL Server TOP - #876
Conversation
…ialect, rewrite SQL Server TOP - watch: --dialect flag, validates --mode, re-validates on change, and formats in place through the same safety-checked path as format -i - mcp: parse_sql accepts a dialect; format_sql description says comments are kept - transpile: help lists every dialect; SELECT TOP <n> becomes LIMIT/FETCH (and LIMIT becomes TOP for SQL Server); PERCENT, WITH TIES, dynamic counts and DML TOP return errors instead of changing meaning - lint: syntax errors are printed once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DnbRnTFErhoMJdAjVEeCg2
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ajitpratap0's task in 30s —— View job Review of PR #876I reviewed the diff statically. I did not run the test suite or build, so the Overall: The change is well scoped and the safety choices are good. Unsafe TOP forms return errors instead of being silently reinterpreted. Suggestions and possible issues
TestsCoverage is good: watch (both modes, dialect, unknown mode), lint output, transpile help, MCP dialect and row-limit rewrites. I would add:
Breaking changesThe two listed in the PR description are reasonable and documented in the CHANGELOG. No security concerns found. Performance is fine, with one --- · branch |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DnbRnTFErhoMJdAjVEeCg2
|
Claude finished @ajitpratap0's task in 18s —— View job Review of PR #876 (updated for the latest push)I reviewed this statically. I read Overall: The change is well scoped. Unsafe TOP forms return errors instead of being silently reinterpreted, and Issues and suggestions
Suggested extra tests
Breaking changesThe two listed in the description are reasonable and are in the CHANGELOG. No security concerns found. Performance is fine, with one |
Summary
--dialectflag;--modevalues other than validate/format are rejected; changed files are re-validated, and format mode writes in place through the same verified path asformat -i.parse_sqltakes an optionaldialect(enum of supported dialects);format_sqldescription now says comments are preserved; parse counts exclude GO separators.--helplists all eight dialects instead of three pairs.SELECT TOP n→LIMIT n(orFETCH FIRSTfor generic);LIMIT n→TOP nfor SQL Server targets. TOP PERCENT, WITH TIES, non-literal counts, TOP mixed with LIMIT/OFFSET/FETCH, DML TOP and LIMIT WITH TIES→SQL Server return errors.Test Plan
task check(fmt, vet, golangci-lint, race tests)task test:cbindingBreaking Changes
gosqlx watch --mode <unknown>now errors instead of silently validating.🤖 Generated with Claude Code
https://claude.ai/code/session_01DnbRnTFErhoMJdAjVEeCg2