Skip to content

PostgreSQL dialect - handle getIdentitySql properly using RETURNING#248

Open
matrasmusson wants to merge 1 commit intoericdc1:masterfrom
matrasmusson:master
Open

PostgreSQL dialect - handle getIdentitySql properly using RETURNING#248
matrasmusson wants to merge 1 commit intoericdc1:masterfrom
matrasmusson:master

Conversation

@matrasmusson
Copy link

PostgreSQL supports RETURNING for sequences. LASTVAL() is dangerous e.g. if the INSERT triggers additional inserts, as the LASTVAL() will be the last inserted id in the session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant