This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-03-30 15:45:01 -04:00
parent bf56da719b
commit 8305cee7cc

View File

@@ -32,7 +32,15 @@ class p11835 extends patch
patch::$isPathchable = false;
$con = Propel::getConnection("workflow");
$stmt = $con->prepareStatement("describe TASK;");
$stmt = $con->prepareStatement("SHOW TABLES LIKE 'TASK'");
$rs = $stmt->executeQuery();
$rs->next();
$row = $rs->getRow();
if (empty($row) === true) {
return patch::$isPathchable;
}
$stmt = $con->prepareStatement("DESCRIBE TASK");
$rs = $stmt->executeQuery();
$rs->next();
while ($row = $rs->getRow()) {