public function visitSelectStatmentNode(SelectStatementNode $node, Collector $collector) { if ($node->getOffset() && !$node->getLimit()) { $node->setLimit(new LimitNode(PHP_INT_MAX)); } return parent::visitSelectStatmentNode($node, $collector); }
protected function visitSelectOptions(SelectStatementNode $node, Collector $collector) { $this->maybeVisit($node->getLimit(), $collector); $this->maybeVisit($node->getOffset(), $collector); $this->maybeVisit($node->getLock(), $collector); return $collector; }