Skip to content

Commit 9f4b829

Browse files
committed
Selection::insert() fixed delimiting of FQN sequence name like 'aaa.bbb' [Closes #108]
1 parent d496f3d commit 9f4b829

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Database/Table/Selection.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -747,11 +747,10 @@ public function insert($data)
747747
return $return->getRowCount();
748748
}
749749

750-
$primarySequenceName = $this->getPrimarySequence();
751750
$primaryKey = $this->context->getInsertId(
752-
!empty($primarySequenceName)
753-
? $this->context->getConnection()->getSupplementalDriver()->delimite($primarySequenceName)
754-
: $primarySequenceName
751+
($tmp = $this->getPrimarySequence())
752+
? implode('.', array_map([$this->context->getConnection()->getSupplementalDriver(), 'delimite'], explode('.', $tmp)))
753+
: NULL
755754
);
756755
if ($primaryKey === FALSE) {
757756
unset($this->refCache['referencing'][$this->getGeneralCacheKey()][$this->getSpecificCacheKey()]);

0 commit comments

Comments
 (0)