Navigation Menu

Skip to content

Commit

Permalink
Fixing connection methods in DboSybase. Fixes #145
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 6, 2009
1 parent 3bf94e6 commit 6e9ca43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/model/datasources/dbo/dbo_sybase.php
Expand Up @@ -95,9 +95,9 @@ function connect() {
$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;
Expand Down

0 comments on commit 6e9ca43

Please sign in to comment.