mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 16:15:22 +02:00
- added support for Oracle's easy connect naming
git-svn-id: file:///svn/phpbb/trunk@7671 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bc90e825ee
commit
49d351be1d
@ -203,6 +203,7 @@ p a {
|
||||
<li>[Fix] Improper magic url parsing applied to already parsed [url=] bbcode tag (Bug #11429)</li>
|
||||
<li>[Fix] Renamed two indicies for Oracle support (Bug #11457)</li>
|
||||
<li>[Fix] Added support for ISO-8859-8-i in the character set convertor</li>
|
||||
<li>[Fix] Added support for Oracle's "easy connect naming"</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
@ -35,8 +35,21 @@ class dbal_oracle extends dbal
|
||||
$this->user = $sqluser;
|
||||
$this->server = $sqlserver . (($port) ? ':' . $port : '');
|
||||
$this->dbname = $database;
|
||||
|
||||
$this->db_connect_id = ($new_link) ? @ocinlogon($this->user, $sqlpassword, $this->dbname, 'UTF8') : (($this->persistency) ? @ociplogon($this->user, $sqlpassword, $this->dbname, 'UTF8') : @ocinlogon($this->user, $sqlpassword, $this->dbname, 'UTF8'));
|
||||
|
||||
$connect = $database;
|
||||
|
||||
// support for "easy connect naming"
|
||||
if ($sqlserver !== '' && $sqlserver !== '/')
|
||||
{
|
||||
if (substr($sqlserver, -1, 1) == '/')
|
||||
{
|
||||
$sqlserver == substr($sqlserver, 0, -1);
|
||||
}
|
||||
$connect = $sqlserver . (($port) ? ':' . $port : '') . '/' . $dbname;
|
||||
$this->dbname = $connect;
|
||||
}
|
||||
|
||||
$this->db_connect_id = ($new_link) ? @ocinlogon($this->user, $sqlpassword, $connect, 'UTF8') : (($this->persistency) ? @ociplogon($this->user, $sqlpassword, $connect, 'UTF8') : @ocinlogon($this->user, $sqlpassword, $connect, 'UTF8'));
|
||||
|
||||
return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error('');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user