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

Be able to execute two update commands in one transaction using custom queries #682

Open
ecerichter opened this issue Feb 22, 2022 · 0 comments

Comments

@ecerichter
Copy link

ecerichter commented Feb 22, 2022

I would like to be able to execute two update commands (separted by semicolon) in one transaction by using custom queries.
For instance,

begin;
update bankaccount set balance = balance + 100;
update cashaccount set balance = balance - 100;
commit;

I've tried, but I'm always getting an error caused by prepared statements...
Would be possible to completly disable prepared statements? Would Prestd be able to (or need to) understand I do have two commands?

@arxdsilva arxdsilva added feature New fetures feature/request and removed feature New fetures labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants