mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix #1705 : MySQL connection might be lost after long operations
This commit is contained in:
@@ -136,10 +136,12 @@ abstract class PhraseanetWebTestCaseAuthenticatedAbstract extends PhraseanetPHPU
|
||||
->get_connection()
|
||||
->prepare('DROP DATABASE IF EXISTS `unit_test_db`');
|
||||
$stmt->execute();
|
||||
$stmt->closeCursor();
|
||||
$stmt = self::$DI['app']['phraseanet.appbox']
|
||||
->get_connection()
|
||||
->prepare('DELETE FROM sbas WHERE dbname = "unit_test_db"');
|
||||
$stmt->execute();
|
||||
$stmt->closeCursor();
|
||||
}
|
||||
|
||||
protected function createDatabase()
|
||||
|
Reference in New Issue
Block a user