Transaction with persistent

I am using Persisent with a MySQL database and it seems that the transaction is not working.

I am doing something similar to

runDB $ do
    insertMany something
    error "should rollback"
    insertMany somethingElse

      

I expect something

not to be in the database. The call error

should cancel the transaction, but when I do, it is something

inserted into the database. Am I missing something? (I have verified that autocommit is set to 0 and it is).

+3


source to share





All Articles