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 not rolling back [DNET540] #517
Comments
Commented by: @cincuranet Why it should not insert records when you're calling `scope.Complete();`? |
Modified by: @cincuranetstatus: Open [ 1 ] => In Progress [ 3 ] |
Commented by: pritaeas (pritaeas) Why? Because the lowest method InsertD() throws an exception, breaking out of the method, and thus not calling scope.Complete in the lowest level. All others higher up in the hierarchy should be rolled back as well. |
Commented by: @cincuranet Ahh, I see. I missed the exception. |
Commented by: @cincuranet I'm testing your code now with latest version of provider and everything works as expected. Can you try latest version? |
Commented by: pritaeas (pritaeas) It was only a problem in the version mentioned (2.5.2). And no, I cannot test anymore, since the code has changed drastically since the reporting of this issue 18 months ago. |
Commented by: @cincuranet OK, so I'll close it. |
Modified by: @cincuranetstatus: In Progress [ 3 ] => Closed [ 6 ] resolution: Cannot Reproduce [ 5 ] |
Submitted by: pritaeas (pritaeas)
When I run the below C# code (.NET 3.5 Framework) with FirebirdSql.Data.FirebirdClient V2.5.1 the TransactionScope works as expected, not inserting any records at all. If I use the V2.5.2 client then all three records are inserted into their respective tables. My connection string contains Enlist = true. I've had identical results using a local and remote database.
The text was updated successfully, but these errors were encountered: