mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Fix #1705 : MySQL connection might be lost after long operations
This commit is contained in:
@@ -65,6 +65,7 @@ class patch_370alpha7a implements patchInterface
|
||||
$stmt = $conn->prepare($sql);
|
||||
$stmt->execute();
|
||||
$rs = $stmt->fetchAll();
|
||||
$stmt->closeCursor();
|
||||
} catch (\PDOException $e) {
|
||||
// table not found
|
||||
if ($e->getCode() == '42S02') {
|
||||
|
@@ -72,8 +72,8 @@ class patch_370alpha8a implements patchInterface
|
||||
if (($stmt = $conn->prepare($sql)) !== FALSE) {
|
||||
$stmt->execute();
|
||||
$ttasks = $row = $stmt->fetchAll();
|
||||
$stmt->closeCursor();
|
||||
}
|
||||
$stmt->closeCursor();
|
||||
|
||||
$tdom = array(); // key = period
|
||||
$taskstodel = array();
|
||||
|
Reference in New Issue
Block a user