This commit is contained in:
2023-07-20 15:01:24 +08:00
parent d4219b902a
commit 4c6dbc9b3c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -144,7 +144,7 @@ class Connection extends Component
/** /**
* @return PDO * @return PDO
* @throws Exception * @throws Kiri\Exception\ConfigException
*/ */
public function getConnection(): PDO public function getConnection(): PDO
{ {
@@ -255,7 +255,7 @@ class Connection extends Component
* 回收链接 * 回收链接
* @throws * @throws
*/ */
public function release(PDO $PDO): void public function release(?PDO $PDO): void
{ {
$this->pool()->push($this->cds, $PDO); $this->pool()->push($this->cds, $PDO);
} }
+1 -1
View File
@@ -121,7 +121,7 @@ class SqlBuilder extends Component
$update .= '(' . implode(',', $this->getFields($attributes)) . ') VALUES '; $update .= '(' . implode(',', $this->getFields($attributes)) . ') VALUES ';
$order = 0; $order = 0;
$keys = $params = []; $keys = [];
foreach ($attributes as $attribute) { foreach ($attributes as $attribute) {
$_keys = $this->builderParams($attribute, true, $order); $_keys = $this->builderParams($attribute, true, $order);