变更
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ class PDO implements StopHeartbeatCheck
|
|||||||
// $this->_timerId = Timer::tick(6000, [$this, 'check']);
|
// $this->_timerId = Timer::tick(6000, [$this, 'check']);
|
||||||
// }
|
// }
|
||||||
// $this->_last = time();
|
// $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]);
|
throw new Exception($this->_pdo()->errorInfo()[1]);
|
||||||
}
|
}
|
||||||
return $this->bindValue($statement, $params);
|
return $this->bindValue($statement, $params);
|
||||||
|
|||||||
Reference in New Issue
Block a user