改名
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ class PDO implements StopHeartbeatCheck
|
||||
if ($prepare->execute($params) === false) {
|
||||
throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE);
|
||||
}
|
||||
if (!$isInsert) {
|
||||
if ($isInsert) {
|
||||
return (int)$this->_pdo()->lastInsertId();
|
||||
}
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user