modify plugin name

This commit is contained in:
2022-02-23 11:08:35 +08:00
parent ecb63ff136
commit 29c6478169
+3
View File
@@ -282,9 +282,12 @@ class PDO implements StopHeartbeatCheck
$this->_last = time();
$pdo = $this->_pdo();
if (!(($prepare = $pdo->prepare($sql)) instanceof PDOStatement)) {
var_dump($pdo->errorInfo(), $prepare->errorInfo(), $sql);
throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE);
}
if ($prepare->execute($params) === false) {
var_dump($pdo->errorInfo(), $prepare->errorInfo(), $sql);
throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE);
}
$result = (int)$pdo->lastInsertId();