Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

Mandatory quoting is retained for identifiers which have any non-alphanumeric characters, but an uppercase character alone does not activate the suggested quoting.

The original logic looks intentional but doesn't seem to be needed. Maybe this was because the list of keywords was limited, and capitalization was a proxy for keyword? After #1447, we have a much more complete list of keywords.

Fixes #620.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

Mandatory quoting is retained for identifiers which have any
non-alphanumeric characters, but an uppercase character alone does
not activate the suggested quoting.
@rolandwalker rolandwalker self-assigned this Jan 21, 2026
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One additional thing I was going to add was escaping database names:

    def extend_database_names(self, databases: list[str]) -> None:
        self.databases.extend([self.escape_name(db) for db in databases])

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.

Is it possible to disable quoting on auto-completed fields

3 participants