Skip to content
Browse files

Fixed parameters in exception when connections are maxed.

  • Loading branch information...
1 parent 48009bf commit 849a379b0f935fd17124be7f483ecf638b222859 Matthew A. Mattson committed May 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/base/db/connection/pool.php
View
2 classes/base/db/connection/pool.php
@@ -130,7 +130,7 @@ public function __set($key, $value) {
public function add_connection(DB_Connection $connection) {
if ( ! is_null($connection)) {
if ($this->count() >= $this->settings['max_size']) {
- throw new Kohana_Database_Exception('Message: Failed to add connection. Reason: Exceeded maximum number of connections that may be held in the pool.', array(':source' => $source, ':new' => $new));
+ throw new Kohana_Database_Exception('Message: Failed to add connection. Reason: Exceeded maximum number of connections that may be held in the pool.', array(':source' => $connection->data_source->id));
}
$this->connection_id = spl_object_hash($connection);
if ( ! isset($this->lookup[$this->connection_id])) {

0 comments on commit 849a379

Please sign in to comment.
Something went wrong with that request. Please try again.