drizzle-orm icon indicating copy to clipboard operation
drizzle-orm copied to clipboard

[BUG]: bun:sqlite throws on empty results

Open mindreframer opened this issue 1 year ago • 3 comments

What version of drizzle-orm are you using?

0.26.5

What version of drizzle-kit are you using?

0.18.1

Describe the Bug

Reproduction here:

  • https://github.com/mindreframer/drizzle-bun-issue

Requires the fix for https://github.com/drizzle-team/drizzle-orm/issues/381 first for this issues to be surfaced.

Expected behavior

It should be possible to return empty results from the DB

Environment & setup

Nothing special, this is not related to Env / Setup

mindreframer avatar Jun 05 '23 12:06 mindreframer

Bump. having this exact same issue with bun-sqlite

johnpgr avatar Jun 05 '23 13:06 johnpgr

Bump, too recurring issue with bun .all() query seems to always return null which is weird (makes bun-sqlite practically unusable to start a project without making manual seeding) By the way sorry the have made pr #631 such incomplete

titouv avatar Jun 06 '23 01:06 titouv

https://github.com/drizzle-team/drizzle-orm/pull/631#issuecomment-1577895541

AndriiSherman avatar Jun 06 '23 05:06 AndriiSherman

Should be fixed in bun v0.6.8

AndriiSherman avatar Jun 12 '23 10:06 AndriiSherman