Skip to content

Commit

Permalink
SqlBuilder: applyLimit() is called always
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 21, 2015
1 parent 31bd221 commit d9b80b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Database/Table/SqlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ public function buildSelectQuery($columns = NULL)
$queryJoins = $this->buildQueryJoins($joins);
$query = "{$querySelect} FROM {$this->delimitedTable}{$queryJoins}{$queryCondition}{$queryEnd}";

if ($this->limit !== NULL || $this->offset) {
$this->driver->applyLimit($query, $this->limit, $this->offset);
}
$this->driver->applyLimit($query, $this->limit, $this->offset);

return $this->tryDelimite($query);
}
Expand Down

0 comments on commit d9b80b9

Please sign in to comment.