diff --git a/Connection.php b/Connection.php index df11d04..d53d5cd 100644 --- a/Connection.php +++ b/Connection.php @@ -108,11 +108,11 @@ class Connection extends Component } $name = $connections->name('Mysql:' . $this->cds, true); for ($i = 0; $i < $pool; $i++) { - $pool->push($name, $connections->create($name, $config)); + $pool->push($name, $connections->create($name, $config)()); } $name = $connections->name('Mysql:' . $this->cds, false); for ($i = 0; $i < $pool; $i++) { - $pool->push($name, $connections->create($name, $config)); + $pool->push($name, $connections->create($name, $config)()); } }