Auto-generated id not returned on insert? #1982
whitehorsesoft
started this conversation in
General
Replies: 1 comment 1 reply
-
The postgres adapter doesn't set the auto-generated PK if you are using custom SQL for the insert. Among other things, the postgres adapter uses |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
In the docs for writing manual SQL, the insert section says:
I'm unable to get the PK as stated here. Should I be doing something else?
Versions
PostgreSQL 15.1
Ruby 3.1
Sequel Gem 5.64
PG Gem 1.4.5
Schema
Code
Beta Was this translation helpful? Give feedback.
All reactions