[Bug]: Exit out of a transaction-block without executing a commit action or a rollback-stmt #42759
Labels
Area/Compiler
Lang/Transactions
Ballerina Transaction and its implementation related issued
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
According to the specification, any exit out of the transaction block that is neither a panic nor a fail should trigger either a commit-action or a rollback-statement.
The provided code sample demonstrates a scenario where the exit out of the transaction statement-block doesn't execute a commit action or a rollback statement, which is a violation of the specification. It doesn't raise any compiler errors and executes without any runtime errors.
Steps to Reproduce
Affected Version(s)
2201.9.0
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: