Skip to content

Update locale attribute names for Diplomat locale-based labels#757

Open
Rub21 wants to merge 3 commits intostagingfrom
1257_localized
Open

Update locale attribute names for Diplomat locale-based labels#757
Rub21 wants to merge 3 commits intostagingfrom
1257_localized

Conversation

@Rub21
Copy link
Copy Markdown
Member

@Rub21 Rub21 commented May 6, 2026

# Quote each column with double quotes so identifiers with hyphens or
# mixed case (e.g. localized name columns like "name_zh-Hant-TW")
# remain valid PostgreSQL identifiers.
col_list = ", ".join(f't."{c}"' for c in cols)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we validate the column names before this point, in case someone tries to be fancy and use SQL syntax inside a key name?

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.

2 participants