diff --git a/Command.php b/Command.php index 6c95973..c11a6dd 100644 --- a/Command.php +++ b/Command.php @@ -177,6 +177,7 @@ class Command extends Component try { $startTime = microtime(true); if (($prepare = $client->prepare($this->sql)) === false) { + var_dump($prepare->errorInfo()); throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]); } @@ -184,6 +185,7 @@ class Command extends Component var_dump($this->sql, $this->params); if ($prepare->execute($this->params) === false) { + var_dump($prepare->errorInfo()); throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]); }