Skip to content

Conversation

@harveylee
Copy link

Fix RQBv2 findFirst null handling when no results found

When findFirst returns no results, Bun's database drivers return null instead of undefined. The existing code only checked for undefined, causing null values to be passed to mapRelationalRow, which resulted in TypeError when accessing properties of null.

Fixes #5189

…s found

When findFirst returns no results, Bun's database drivers return null
instead of undefined. The existing code only checked for undefined,
causing null values to be passed to mapRelationalRow, which
resulted in TypeError when accessing properties of null.

Fixes drizzle-team#5189
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