drizzle-team / drizzle-team/drizzle-orm

Add support for `limit null` clause

Open
#1,412 5 comments 2 reactions 0 assignees View on GitHub
enhancement priority qb/crud
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

0.28.5

### What version of `drizzle-kit` are you using?

0.19.13

### Describe the Bug

Using postgres .limit(null) produces error:

Argument of type 'number | null' is not assignable to parameter of type 'number | Placeholder'.
Type 'null' is not assignable to type 'number | Placeholder'.ts(2345)

But SELECT * FROM x LIMIT null is valid syntax

### Expected behavior

It should not error in typescript

### Environment & setup

Svelte Drizzle ORM. Just making a normal query

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.