ebengt
Ecto sandbox and Mysql error
Greetings,
I am trying to allow my existing Postgres application to use Mysql, too. My current problem is this error when running tests with Mysql:
**** (RuntimeError) Ecto SQL sandbox transaction was already committed/rolled back.**
The sandbox works by running each test in a transaction and closing thetransaction afterwards. However, the transaction has already terminated.Your test code is likely committing or rolling back transactions manually,either by invoking procedures or running custom SQL commands.
Does this mean that I can not use transactions in my code when tests are run with Mysql and Ecto sandbox?
First Post!
dimitarvp
This seems like a concurrency issue, namely that the transaction has ended but the test still needed it?
If you can, post some code and maybe we can help.








