Skip to content

Quote column names in DuplicatedField UpdateSqlFragment (with test fixes)#4242

Merged
jeremydmiller merged 4 commits intomasterfrom
fix/4237-duplicated-field-quoting-tests
Apr 8, 2026
Merged

Quote column names in DuplicatedField UpdateSqlFragment (with test fixes)#4242
jeremydmiller merged 4 commits intomasterfrom
fix/4237-duplicated-field-quoting-tests

Conversation

@jeremydmiller
Copy link
Copy Markdown
Member

Summary

Based on PR #4237 by @Brar — quotes column names in DuplicatedField.UpdateSqlFragment() to handle PostgreSQL reserved keywords (e.g., offset).

This PR includes the original changes from #4237 plus fixes for the 26 failing DuplicatedFieldTests that expected unquoted column names.

Changes

Supersedes #4237

Test plan

  • 26/26 DuplicatedFieldTests passing locally

🤖 Generated with Claude Code

MarkVDD and others added 4 commits April 7, 2026 09:31
…agment

Update all test expectations to include double-quoted column names,
matching the change in DuplicatedField.UpdateSqlFragment() from PR #4237
that unconditionally quotes column names to handle PostgreSQL reserved
keywords (e.g., "offset").

26/26 DuplicatedFieldTests passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When ColumnName is set to PascalCase (e.g., "String"), quoting it as
"String" makes PostgreSQL treat it case-sensitively, failing to match
the actual lowercase column. Apply ToLowerInvariant() before quoting.

Fixes the duplicated_fields_only_update_when_nested_source_is_modified
test failure where columnName: "String" was quoted as "String" but the
actual column is lowercase string.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jeremydmiller jeremydmiller merged commit 9f32ec0 into master Apr 8, 2026
6 checks passed
@jeremydmiller jeremydmiller deleted the fix/4237-duplicated-field-quoting-tests branch April 8, 2026 14:28
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