This commit is contained in:
2021-11-10 02:36:49 +08:00
parent 3d588f3f33
commit ee44cfbca9
+1 -1
View File
@@ -168,7 +168,7 @@ class Command extends Component
{
$pdo = $this->db->getConnect($this->sql);
$result = $pdo->execute($this->sql, $isInsert, $this->params);
if (is_null($hasAutoIncrement) && $result == 0) {
if (!is_null($hasAutoIncrement) && $result == 0) {
return false;
}
return $result;