Skip to content

Fix convert --dry-run using bracket quoting instead of quote_identifier() - #830

Open
ikatyal2110 wants to merge 1 commit into
simonw:mainfrom
ikatyal2110:fix/convert-dryrun-quote-identifier
Open

Fix convert --dry-run using bracket quoting instead of quote_identifier()#830
ikatyal2110 wants to merge 1 commit into
simonw:mainfrom
ikatyal2110:fix/convert-dryrun-quote-identifier

Conversation

@ikatyal2110

@ikatyal2110 ikatyal2110 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

The dry-run preview in the convert command built its SQL using Python str.format() with [{column}] bracket quoting, which produces invalid SQL when the column or table name contains a ] character. This replaces the bracket quoting with quote_identifier(), consistent with the rest of the codebase. Fixes #829.


Generated by Claude Code


📚 Documentation preview 📚: https://sqlite-utils--830.org.readthedocs.build/en/830/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

convert --dry-run breaks for column or table names containing ]

1 participant