This commit is contained in:
2021-11-10 11:16:13 +08:00
parent b0dea25640
commit c3dbaa8828
+3
View File
@@ -257,6 +257,9 @@ class PDO implements StopHeartbeatCheck
throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE);
}
$result = (int)$pdo->lastInsertId();
var_dump($result);
$prepare->closeCursor();
if ($result == 0) {
return true;