mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10057] Split statements in firebird dbal for readability.
PHPBB3-10057
This commit is contained in:
parent
22004fa7d6
commit
af43ed655b
1 changed files with 16 additions and 2 deletions
|
@ -53,9 +53,23 @@ class dbal_firebird extends dbal
|
||||||
$use_database = $this->server . ':' . $this->dbname;
|
$use_database = $this->server . ':' . $this->dbname;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db_connect_id = ($this->persistency) ? @ibase_pconnect($use_database, $this->user, $sqlpassword, false, false, 3) : @ibase_connect($use_database, $this->user, $sqlpassword, false, false, 3);
|
if ($this->persistency)
|
||||||
|
{
|
||||||
|
$this->db_connect_id = @ibase_pconnect($use_database, $this->user, $sqlpassword, false, false, 3);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->db_connect_id = @ibase_connect($use_database, $this->user, $sqlpassword, false, false, 3);
|
||||||
|
}
|
||||||
|
|
||||||
$this->service_handle = (function_exists('ibase_service_attach') && $this->server) ? @ibase_service_attach($this->server, $this->user, $sqlpassword) : false;
|
if (function_exists('ibase_service_attach') && $this->server)
|
||||||
|
{
|
||||||
|
$this->service_handle = @ibase_service_attach($this->server, $this->user, $sqlpassword);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$thih->service_handle = false;
|
||||||
|
}
|
||||||
|
|
||||||
return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error('');
|
return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error('');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue