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"; if (\count($select->getAllOrderBy()) < 1) { $limit = "ORDER BY 1 ASC " . $limit; } } $parts = \array_merge($parts, [$limit]); return $this; } }