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

Grouping statement: Put them into a transaction by default #2785

Closed
hfhbd opened this issue Jan 16, 2022 · 1 comment
Closed

Grouping statement: Put them into a transaction by default #2785

hfhbd opened this issue Jan 16, 2022 · 1 comment
Labels
Milestone

Comments

@hfhbd
Copy link
Collaborator

hfhbd commented Jan 16, 2022

Description

What is the purpose of grouping statements, when it is not executed in a transaction? I would expect a rollback of this statement block when one statement fails.

create {
  INSERT INTO foo(id) VALUES (:fooID);
  INSERT INTO myTable (column1, fooID) VALUES (:column1, :fooID);
}
@hfhbd hfhbd added the feature label Jan 16, 2022
@AlecKazakova
Copy link
Collaborator

I think I agree, I can't remember if I generated outside of a transaction on purpose or not 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants