This makes funny things to the DB, and then break stuff…
miclf opened this issue · 0 comments
This is probably the worst title I’ve ever given to a GitHub issue but, since I’ve got a feeling that this package is somewhat abandoned, I’m creating this issue more as a note for other people rather than as a ‘real’ bug report.
So, to put it simply, this packages overrides a few internal Laravel things related to how MySQL connections are managed. So far, this has never caused any issue to me in any project.
But when trying to include this package in another project, my PHPUnit test suddenly started to fail. On a few very specific tests, which attempt to create/delete a database and update some MySQL permissions (“grants”) for a user.
PHPUnit fails because of a SQL error:
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
I don’t have any idea of what may cause this, but I now know for sure it has something to do with this package. Probably something that gets changed in the way row locks are handled (the project I work on uses InnoDB tables).
Anyway, this issue makes it impossible to use this package altogether ¯\(ツ)/¯ (because we won’t remove some of our most critical tests in order to be able to use it)