-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
bugSomething isn't workingSomething isn't workingsqlSomething to do with `sql` in the "bun" module (postgres, sqlite & mysql)Something to do with `sql` in the "bun" module (postgres, sqlite & mysql)
Description
@cirospaciari This is still a problem for me in Bun 1.3.5. The following code:
const [record] = await sql` INSERT INTO "MyTable" ${sql({ foo: undefined, id: Bun.randomUUIDv7() })} `;Results in this error:
null value in column \"foo\" of relation \"MyTable\" violates not-null constraintAny chance your fix could also be ported over support INSERT statements?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsqlSomething to do with `sql` in the "bun" module (postgres, sqlite & mysql)Something to do with `sql` in the "bun" module (postgres, sqlite & mysql)