diff --git a/src/Command.php b/src/Command.php index e581903..21bdcd0 100644 --- a/src/Command.php +++ b/src/Command.php @@ -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; } diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index 54c1315..f80e59b 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -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;