Skip to content

Commit

Permalink
Merge branch '3.0/develop' into 3.1/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cbandy committed Jul 4, 2011
2 parents b9deff5 + f7433b1 commit 6a0a9bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/kohana/database/mysql.php
Expand Up @@ -59,14 +59,14 @@ public function connect()
$this->_connection = mysql_connect($hostname, $username, $password, TRUE); $this->_connection = mysql_connect($hostname, $username, $password, TRUE);
} }
} }
catch (ErrorException $e) catch (Exception $e)
{ {
// No connection exists // No connection exists
$this->_connection = NULL; $this->_connection = NULL;


throw new Database_Exception(':error', throw new Database_Exception(':error',
array(':error' => mysql_error()), array(':error' => $e->getMessage()),
mysql_errno()); $e->getCode());
} }


// \xFF is a better delimiter, but the PHP driver uses underscore // \xFF is a better delimiter, but the PHP driver uses underscore
Expand Down

0 comments on commit 6a0a9bb

Please sign in to comment.