-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning on pdo_oracle usage and implemented DBAL-141
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
|
||
/** | ||
* A Doctrine DBAL driver for the Oracle OCI8 PHP extensions. | ||
* | ||
* | ||
* @author Roman Borschel <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
|
@@ -60,11 +60,11 @@ protected function _constructDsn(array $params) | |
$dsn .= '(PORT=1521)'; | ||
} | ||
|
||
$dsn .= '))'; | ||
if (isset($params['dbname'])) { | ||
$dsn .= '(CONNECT_DATA=(SID=' . $params['dbname'] . ')'; | ||
if (isset($params['service']) && $params['service'] == true) { | ||
$dsn .= '))(CONNECT_DATA=(SERVICE_NAME=' . $params['dbname'] . ')))'; | ||
} else { | ||
$dsn .= '))(CONNECT_DATA=(SID=' . $params['dbname'] . ')))'; | ||
} | ||
$dsn .= '))'; | ||
} else { | ||
$dsn .= $params['dbname']; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters