diff --git a/src/Command.php b/src/Command.php index 6ae9368..e511d83 100644 --- a/src/Command.php +++ b/src/Command.php @@ -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;