Fixing connection methods in DboSybase. Fixes #145

This commit is contained in:
mark_story 2009-10-06 09:21:43 -04:00
parent 3bf94e6a28
commit 6e9ca4367e

View file

@ -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;