Skip to content

Commit 97ef63b

Browse files
authored
Merge pull request joomla#89 from joomla-framework/offset-clear
Add ability to clear offset
2 parents 4a6c589 + f7611c4 commit 97ef63b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/DatabaseQuery.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@ public function clear($clause = null)
560560
$this->limit = 0;
561561
break;
562562

563+
case 'offset':
564+
$this->offset = 0;
565+
break;
566+
563567
case 'union':
564568
$this->union = null;
565569
break;

0 commit comments

Comments
 (0)