Skip to content

fix(orm): avoid nullifying nested objects when later fields are non-null#5793

Open
TheDerbiedOne wants to merge 1 commit into
drizzle-team:mainfrom
TheDerbiedOne:fix/bounty-1603-nested-nullify
Open

fix(orm): avoid nullifying nested objects when later fields are non-null#5793
TheDerbiedOne wants to merge 1 commit into
drizzle-team:mainfrom
TheDerbiedOne:fix/bounty-1603-nested-nullify

Conversation

@TheDerbiedOne
Copy link
Copy Markdown

Fixes #1603.

Root cause: mapResultRow could nullify a nested object based on an earlier null field even when later fields from the same joined table were non-null.

Adds regression coverage: drizzle-orm/tests/mapResultRow.nullify-nested.test.ts.

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.

[BUG]: Nested Partial Select returns null on left join if first column value is null

2 participants