Skip to content

Commit 829b936

Browse files
lulcodg
authored andcommitted
Selection: missing primary key can be FALSE, '0' or '' [Closes #145]
1 parent 9589344 commit 829b936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Table/Selection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ public function insert($data)
821821
? implode('.', array_map([$this->context->getConnection()->getSupplementalDriver(), 'delimite'], explode('.', $tmp)))
822822
: NULL
823823
);
824-
if ($primaryKey === FALSE) {
824+
if (!$primaryKey) {
825825
unset($this->refCache['referencing'][$this->getGeneralCacheKey()][$this->getSpecificCacheKey()]);
826826
return $return->getRowCount();
827827
}

0 commit comments

Comments
 (0)