Skip to content

fix: type isNull and isNotNull as boolean in select queries#5799

Open
emreyn1 wants to merge 1 commit into
drizzle-team:mainfrom
emreyn1:fix/condition-expression-boolean-types
Open

fix: type isNull and isNotNull as boolean in select queries#5799
emreyn1 wants to merge 1 commit into
drizzle-team:mainfrom
emreyn1:fix/condition-expression-boolean-types

Conversation

@emreyn1
Copy link
Copy Markdown

@emreyn1 emreyn1 commented May 23, 2026

Fixes #1826. Minimal scope: only isNull/isNotNull return SQL<boolean | null>. Note: related to open #5226 - happy to close in favor of that if maintainers prefer.

Both helpers can produce NULL at the SQL level (e.g. `NULL IS NULL` is
unknown in some dialects/contexts), so widening the return type to
include `null` reflects what actually comes back. Scope kept minimal to
isNull/isNotNull — happy to close in favor of drizzle-team#5226 if that lands first.

Fixes drizzle-team#1826
@emreyn1 emreyn1 force-pushed the fix/condition-expression-boolean-types branch from 12939de to 31b08dd Compare May 26, 2026 14:36
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]:

1 participant