LastInsertId is not supported by this driver #1013
Unanswered
davidolrik
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get use
LastInsertId()
, but for some odd reason it fails with "LastInsertId is not supported by this driver" and from other discussions here it should just work™.I have tried to condense my problem down to a simple "connect & insert" with debug.
The generated query is
INSERT INTO "test" ("id", "name") VALUES (DEFAULT, 'foo') RETURNING "id"
but alas I still get "LastInsertId is not supported by this driver".Is
LastInsertId()
not supported by the bun postgres driver, or am I doing something wrong?Beta Was this translation helpful? Give feedback.
All reactions