PMCORE-1644

This commit is contained in:
Julio Cesar Laura Avendaño
2020-06-12 22:17:42 +00:00
parent fd800106db
commit 7e916cebd5

View File

@@ -249,16 +249,17 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
if (is_null(config('database.connections.' . $DBConnectionUID . '.driver'))) { if (is_null(config('database.connections.' . $DBConnectionUID . '.driver'))) {
// Force to load the external connections // Force to load the external connections
DbConnections::loadAdditionalConnections(); DbConnections::loadAdditionalConnections();
}
if (config('database.connections.' . $DBConnectionUID . '.driver') !== 'oracle') { if (config('database.connections.' . $DBConnectionUID . '.driver') !== 'oracle') {
// If the connections drivers are "mysql", "pgsql" or "sqlsrv" we're using Laravel // If the connections drivers are "mysql", "pgsql" or "sqlsrv" we're using Laravel
$con = DB::connection($DBConnectionUID); $con = DB::connection($DBConnectionUID);
$con->beginTransaction(); $con->beginTransaction();
} else { } else {
// If the connection driver is "oracle" we're using the native oci8 functions // If the connection driver is "oracle" we are using the native oci8 functions
$con = Propel::getConnection($DBConnectionUID); $con = Propel::getConnection($DBConnectionUID);
$con->begin(); $con->begin();
} }
}
$blackList = System::getQueryBlackList(); $blackList = System::getQueryBlackList();
$listQueries = explode('|', isset($blackList['queries']) ? $blackList['queries'] : ''); $listQueries = explode('|', isset($blackList['queries']) ? $blackList['queries'] : '');