Skip to content

Keywords are uppercased even when they are used as identifiers #611

@alec-heif

Description

@alec-heif

It seems that sqlparse.format considers words like date and segment as SQL identifiers, and so when these words are used as identifiers with keyword_case=True, sqlparse will automatically uppercase them.

It would be ideal if keywords would be only treated as keywords when they are used as keywords instead of naively uppercasing segment anywhere it is used. This can cause confusion to users when their column names are uppercased unexpectedly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions