This commit is contained in:
2023-04-03 17:40:44 +08:00
parent 92ab70d59d
commit 1d7ffcda89
+1 -1
View File
@@ -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);