Skip to content

Commit de71126

Browse files
authored
Merge pull request joomla#59 from jbanety/limit-patch
Backport of joomla/joomla-cms#10853
2 parents bf21e71 + 08e620b commit de71126

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

src/Mysqli/MysqliDriver.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -576,11 +576,6 @@ public function execute()
576576
// Take a local copy so that we don't modify the original query and cause issues later
577577
$sql = $this->replacePrefix((string) $this->sql);
578578

579-
if ($this->limit > 0 || $this->offset > 0)
580-
{
581-
$sql .= ' LIMIT ' . $this->offset . ', ' . $this->limit;
582-
}
583-
584579
// Increment the query counter.
585580
$this->count++;
586581

src/Pdo/PdoDriver.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,6 @@ public function execute()
371371
// Take a local copy so that we don't modify the original query and cause issues later
372372
$sql = $this->replacePrefix((string) $this->sql);
373373

374-
if ($this->limit > 0 || $this->offset > 0)
375-
{
376-
// @TODO
377-
$sql .= ' LIMIT ' . $this->offset . ', ' . $this->limit;
378-
}
379-
380374
// Increment the query counter.
381375
$this->count++;
382376

src/Postgresql/PostgresqlDriver.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -723,11 +723,6 @@ public function execute()
723723
// Take a local copy so that we don't modify the original query and cause issues later
724724
$sql = $this->replacePrefix((string) $this->sql);
725725

726-
if ($this->limit > 0 || $this->offset > 0)
727-
{
728-
$sql .= ' LIMIT ' . $this->limit . ' OFFSET ' . $this->offset;
729-
}
730-
731726
$count = $this->getCount();
732727

733728
// Increment the query counter.

0 commit comments

Comments
 (0)