PM-2828 "In the BPMN Designer, can not connect..." SOLVED

This commit is contained in:
Luis Fernando Saisa Lopez
2015-06-01 13:58:50 -04:00
parent cb93c2fe8f
commit 914537d445
3 changed files with 23 additions and 18 deletions

View File

@@ -242,6 +242,7 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
{
$con = Propel::getConnection( $DBConnectionUID );
$con->begin();
try {
$statement = trim( $SqlStatement );
$statement = str_replace( '(', '', $statement );
@@ -278,7 +279,13 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
break;
}
} else {
$result = executeQueryOci( $SqlStatement, $con, $aParameter );
$dataEncode = $con->getDSN();
if (isset($dataEncode["encoding"]) && $dataEncode["encoding"] != "") {
$result = executeQueryOci($SqlStatement, $con, $aParameter, $dataEncode["encoding"]);
} else {
$result = executeQueryOci($SqlStatement, $con, $aParameter);
}
}
return $result;