Skip to content

Quote the column name in MetaModel::saveSimpleColumn()'s UPDATE statement - #1590

Merged
zonky2 merged 1 commit into
release/2.5from
fix/save-simple-column-quoting
Sep 1, 2026
Merged

Quote the column name in MetaModel::saveSimpleColumn()'s UPDATE statement#1590
zonky2 merged 1 commit into
release/2.5from
fix/save-simple-column-quoting

Conversation

@zonky2

@zonky2 zonky2 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Same pattern as BaseSimple::setDataFor(): "SET = ..." built with the bare, unquoted column name - breaks for any column whose name happens to be a SQL reserved word. Currently only called with fixed literals (vargroup, pid, sorting, tstamp), none of which are reserved words, but the method is protected and can be called with arbitrary column names by subclasses. Quoted via
Connection::quoteIdentifier().

…ment

Same pattern as BaseSimple::setDataFor(): "SET <column> = ..." built
with the bare, unquoted column name - breaks for any column whose
name happens to be a SQL reserved word. Currently only called with
fixed literals (vargroup, pid, sorting, tstamp), none of which are
reserved words, but the method is protected and can be called with
arbitrary column names by subclasses. Quoted via
Connection::quoteIdentifier().
@zonky2
zonky2 merged commit 29e5c03 into release/2.5 Sep 1, 2026
0 of 4 checks passed
@zonky2 zonky2 added this to the 2.5.x milestone Sep 1, 2026
@zonky2 zonky2 self-assigned this Sep 1, 2026
@zonky2
zonky2 deleted the fix/save-simple-column-quoting branch September 1, 2026 14:52
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.

1 participant