Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction insertion issue #903

Open
pony5551 opened this issue Nov 26, 2023 · 0 comments
Open

Transaction insertion issue #903

pony5551 opened this issue Nov 26, 2023 · 0 comments

Comments

@pony5551
Copy link

pony5551 commented Nov 26, 2023

Transaction insertion issue

If using transactions to insert different tables multiple times and using

RETURNING ID, second insertion will result in an error

Insert INTO db1 (id, name) values (1,'name1 ') RETURNING id;

Obtain ID here for next insertion

Insert INTO db2 (id, db1id) values (1, db1id)

Error pq: unexpected Parse response 'C' reported here

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

No branches or pull requests

1 participant