This commit is contained in:
2021-02-23 18:12:17 +08:00
parent 75e79915f7
commit 9712cfcb50
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ class Command extends Component
if ($result == 0 && $hasAutoIncrement->hasAutoIncrement()) {
return $this->addError($connection->errorInfo()[2], 'mysql');
}
return $result;
return $result == 0 ? true : $result;
}