diff --git a/Command.php b/Command.php index c11a6dd..8193ac9 100644 --- a/Command.php +++ b/Command.php @@ -182,13 +182,12 @@ class Command extends Component } - var_dump($this->sql, $this->params); - - if ($prepare->execute($this->params) === false) { - var_dump($prepare->errorInfo()); + if (($execute = $prepare->execute($this->params)) === false) { throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]); } + var_dump($execute); + $prepare->closeCursor(); $result = $client->lastInsertId();