Merge pull request #652 from romainneutron/fix-1477

[3.8] Fix 1477
This commit is contained in:
Romain Neutron
2013-09-19 05:40:16 -07:00

View File

@@ -58,7 +58,6 @@ class patch_380a3 implements patchInterface
{
$conn = $databox->get_connection();
try {
$removeProc = "DROP PROCEDURE IF EXISTS explode_log_table";
$stmt = $conn->prepare($removeProc);
@@ -112,16 +111,16 @@ class patch_380a3 implements patchInterface
$stmt = $conn->prepare($procedure);
$stmt->execute();
$stmt->closeCursor();
unset($stmt);
$sql = "CALL explode_log_table(',')";
$stmt = $conn->prepare($sql);
$stmt->execute();
$stmt->closeCursor();
unset($stmt);
} catch (\PDOEXception $e) {
return false;
}
$stmt = $conn->prepare($removeProc);
$stmt->execute();
$stmt->closeCursor();
return true;
}