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

[BUG]: Timestamp in SQLite errors if null is passed

Open fezproof opened this issue 2 years ago • 1 comments

What version of drizzle-orm are you using?

0.21.1

Describe the Bug

When using the Sqlite adapter, having nullable integer timestamps will cause an error if null is passed into the field. Seems the builder assumes that the date passed in is always non null.

fezproof avatar Mar 11 '23 16:03 fezproof

Already fixed, just not released to latest. You can use drizzle-orm@beta for now.

dankochetov avatar Mar 11 '23 16:03 dankochetov

Fixed in 0.23.0

dankochetov avatar Mar 26 '23 22:03 dankochetov