This commit is contained in:
2021-11-10 11:18:12 +08:00
parent c3dbaa8828
commit a113d5f64b
2 changed files with 1 additions and 3 deletions
+1
View File
@@ -129,6 +129,7 @@ class Command extends Component
} catch (\Throwable $exception) {
$result = $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');
} finally {
var_dump($result);
$this->db->release();
return $result;
}
-3
View File
@@ -257,9 +257,6 @@ 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;