qqq
This commit is contained in:
+2
-2
@@ -144,7 +144,7 @@ class Connection extends Component
|
||||
|
||||
/**
|
||||
* @return PDO
|
||||
* @throws Exception
|
||||
* @throws Kiri\Exception\ConfigException
|
||||
*/
|
||||
public function getConnection(): PDO
|
||||
{
|
||||
@@ -255,7 +255,7 @@ class Connection extends Component
|
||||
* 回收链接
|
||||
* @throws
|
||||
*/
|
||||
public function release(PDO $PDO): void
|
||||
public function release(?PDO $PDO): void
|
||||
{
|
||||
$this->pool()->push($this->cds, $PDO);
|
||||
}
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ class SqlBuilder extends Component
|
||||
$update .= '(' . implode(',', $this->getFields($attributes)) . ') VALUES ';
|
||||
|
||||
$order = 0;
|
||||
$keys = $params = [];
|
||||
$keys = [];
|
||||
foreach ($attributes as $attribute) {
|
||||
$_keys = $this->builderParams($attribute, true, $order);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user