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