This commit is contained in:
2021-05-20 15:56:54 +08:00
parent 0690e7d412
commit 4dd3c3607c
+1 -1
View File
@@ -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()) {