getStartingLimit($select) . $this->getLimitCount($select); $limit = ''; if ($mask !== '00') { $start = $this->placeholderWriter->add($select->getLimitStart()); $count = $this->placeholderWriter->add($select->getLimitCount()); //$limit = "LIMIT {$start}, {$count}"; $limit = "OFFSET {$start} ROWS FETCH NEXT {$count} ROWS ONLY"; } $parts = \array_merge($parts, [$limit]); return $this; } }