From b9493bce2bbcba2bc207dd397a50a28bd7b59c2f Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 2 May 2021 14:39:59 +0800 Subject: [PATCH] modify --- Database/Command.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Database/Command.php b/Database/Command.php index 641d206b..0e5c4c01 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -147,9 +147,7 @@ class Command extends Component private function search($type): mixed { $connect = $this->db->getConnect($this->sql); - if (!($this->prepare = $connect?->query($this->sql, [ - array( \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true ) - ]))) { + if (!($this->prepare = $connect?->query($this->sql))) { return $this->addError($connect->errorInfo()[2] ?? '数据库异常, 请稍后再试.'); } if ($type === static::FETCH_COLUMN) {