Skip to content

Commit

Permalink
Selection: missing primary key can be FALSE, '0' or '' [Closes #145]
Browse files Browse the repository at this point in the history
  • Loading branch information
lulco authored and dg committed Oct 18, 2016
1 parent 9589344 commit 829b936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Table/Selection.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ public function insert($data)
? implode('.', array_map([$this->context->getConnection()->getSupplementalDriver(), 'delimite'], explode('.', $tmp)))
: NULL
);
if ($primaryKey === FALSE) {
if (!$primaryKey) {
unset($this->refCache['referencing'][$this->getGeneralCacheKey()][$this->getSpecificCacheKey()]);
return $return->getRowCount();
}
Expand Down

0 comments on commit 829b936

Please sign in to comment.