Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-14 16:06:31 +08:00
parent 6d699df26e
commit 4ca0a61344
+20 -2
View File
@@ -108,11 +108,29 @@ class Connection extends Component
}
$name = $connections->name('Mysql:' . $this->cds, true);
for ($i = 0; $i < $pool; $i++) {
$connections->addItem($name, $connections->create($name, $config)());
$connections->addItem($name, $connections->create($name, [
'cds' => $this->cds,
'username' => $this->username,
'password' => $this->password,
'attributes' => $this->attributes,
'connect_timeout' => $this->connect_timeout,
'read_timeout' => $this->read_timeout,
'dbname' => $this->database,
'pool' => $this->pool
])());
}
$name = $connections->name('Mysql:' . $this->cds, false);
for ($i = 0; $i < $pool; $i++) {
$connections->addItem($name, $connections->create($name, $config)());
$connections->addItem($name, $connections->create($name, [
'cds' => $this->cds,
'username' => $this->username,
'password' => $this->password,
'attributes' => $this->attributes,
'connect_timeout' => $this->connect_timeout,
'read_timeout' => $this->read_timeout,
'dbname' => $this->database,
'pool' => $this->pool
])());
}
}