Skip to content

Commit

Permalink
allow configuring oracle session mode, needed when using oracle wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
butonic committed May 12, 2015
1 parent 9f2f282 commit 5f2043f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/private/db/connectionfactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ public function createConnectionParams($config) {
if ($driverOptions) {
$connectionParams['driverOptions'] = $driverOptions;
}
// allow setting oracle session mode parameter, eg OCI_CRED_EXT when using oracle wallet
$sessionMode = $config->getValue('dbsessionmode', null);
if ($sessionMode) {
$connectionParams['sessionMode'] = $sessionMode;
}

return $connectionParams;
}
Expand Down

0 comments on commit 5f2043f

Please sign in to comment.