Fix #1705 : MySQL connection might be lost after long operations

This commit is contained in:
Romain Neutron
2014-02-28 12:35:11 +01:00
parent 170c145e15
commit 035576cefc
22 changed files with 128 additions and 68 deletions

View File

@@ -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') {

View File

@@ -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();