Skip to content

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