Skip to content

Use IsDeleted column TypeMapping in soft-delete DbFunction#25570

Merged
EngincanV merged 1 commit into
rel-10.5from
liming/fix-soft-delete-dbfunction-bool-literal
Jun 8, 2026
Merged

Use IsDeleted column TypeMapping in soft-delete DbFunction#25570
EngincanV merged 1 commit into
rel-10.5from
liming/fix-soft-delete-dbfunction-bool-literal

Conversation

@maliming

@maliming maliming commented Jun 8, 2026

Copy link
Copy Markdown
Member

The soft-delete DbFunction translator built the right-hand false literal with the bool TypeMapping, ignoring any ValueConverter on the IsDeleted column. With HasConversion<int>() (the reproduction in #25567) the generated SQL ends up comparing an int column against the raw bool literal — WHERE is_deleted = FALSE on PostgreSQL — instead of the converter's provider value (0). Switched the literal to use the column's TypeMapping.

Closes #25567.

@maliming maliming added this to the 10.5-final milestone Jun 8, 2026
@maliming maliming requested review from EngincanV and ismcagdas and removed request for EngincanV June 8, 2026 05:37
@EngincanV EngincanV merged commit 322688f into rel-10.5 Jun 8, 2026
1 of 2 checks passed
@EngincanV EngincanV deleted the liming/fix-soft-delete-dbfunction-bool-literal branch June 8, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants