mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing connection methods in DboSybase. Fixes #145
This commit is contained in:
parent
3bf94e6a28
commit
6e9ca4367e
1 changed files with 2 additions and 2 deletions
|
@ -95,9 +95,9 @@ class DboSybase extends DboSource {
|
|||
$port = ':' . $config['port'];
|
||||
}
|
||||
if ($config['persistent']) {
|
||||
$this->connection = sybase_connect($config['host'] . $port, $config['login'], $config['password'], true);
|
||||
} else {
|
||||
$this->connection = sybase_pconnect($config['host'] . $port, $config['login'], $config['password']);
|
||||
} else {
|
||||
$this->connection = sybase_connect($config['host'] . $port, $config['login'], $config['password'], true);
|
||||
}
|
||||
$this->connected = sybase_select_db($config['database'], $this->connection);
|
||||
return $this->connected;
|
||||
|
|
Loading…
Add table
Reference in a new issue