diff --git a/ActiveQuery.php b/ActiveQuery.php index ea40e89..b431e99 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -231,9 +231,6 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder } $generate = $this->builder->update($data); if (!is_bool($generate)) { - - var_dump($generate); - return (bool)$this->buildCommand($generate)->exec(); } else { return $generate; diff --git a/Command.php b/Command.php index 445eccc..6c95973 100644 --- a/Command.php +++ b/Command.php @@ -179,6 +179,10 @@ class Command extends Component if (($prepare = $client->prepare($this->sql)) === false) { throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]); } + + + var_dump($this->sql, $this->params); + if ($prepare->execute($this->params) === false) { throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]); }