This commit is contained in:
2021-02-23 17:57:54 +08:00
parent 1c0cd04fcc
commit d887b4bbfc
+2 -1
View File
@@ -246,9 +246,10 @@ class Command extends Component
return false;
}
if (($result = $this->prepare->execute($this->params)) === false) {
var_dump($result);
return $this->addError($connection->errorInfo()[2], 'mysql');
}
if (!$isInsert) {
if ($isInsert === false) {
return true;
}
$result = $connection->lastInsertId();