From 1d7ffcda897846deb637d66d12e736442167212c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 3 Apr 2023 17:40:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mysql/PDO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mysql/PDO.php b/Mysql/PDO.php index 47a5891..34358ee 100644 --- a/Mysql/PDO.php +++ b/Mysql/PDO.php @@ -236,7 +236,7 @@ class PDO implements StopHeartbeatCheck // $this->_timerId = Timer::tick(6000, [$this, 'check']); // } // $this->_last = time(); - if (($statement = $this->_pdo()->query($sql)) === false) { + if (($statement = $this->_pdo()->query($sql, \PDO::FETCH_ASSOC)) === false) { throw new Exception($this->_pdo()->errorInfo()[1]); } return $this->bindValue($statement, $params);