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,15 +249,16 @@ 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 the connections drivers are "mysql", "pgsql" or "sqlsrv" we're using Laravel
$con = DB::connection($DBConnectionUID); if (config('database.connections.' . $DBConnectionUID . '.driver') !== 'oracle') {
$con->beginTransaction(); // If the connections drivers are "mysql", "pgsql" or "sqlsrv" we're using Laravel
} else { $con = DB::connection($DBConnectionUID);
// If the connection driver is "oracle" we're using the native oci8 functions $con->beginTransaction();
$con = Propel::getConnection($DBConnectionUID); } else {
$con->begin(); // If the connection driver is "oracle" we are using the native oci8 functions
} $con = Propel::getConnection($DBConnectionUID);
$con->begin();
} }
$blackList = System::getQueryBlackList(); $blackList = System::getQueryBlackList();