diff --git a/Database/Command.php b/Database/Command.php index 06d20009..16f582e6 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -171,7 +171,7 @@ class Command extends Component if (($result = $this->getPdoStatement()) === false) { return $result; } - if ($isInsert === false) { + if ($isInsert === false || !$hasAutoIncrement) { return true; } if ($result == 0 && $hasAutoIncrement->isAutoIncrement()) {