From f7611c4a5b38e067bd024e93ffac1db1f3ba13d0 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Thu, 1 Jun 2017 01:08:54 +0100 Subject: [PATCH] Add ability to clear offset --- src/DatabaseQuery.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DatabaseQuery.php b/src/DatabaseQuery.php index bf0fcd0a..25cea720 100644 --- a/src/DatabaseQuery.php +++ b/src/DatabaseQuery.php @@ -560,6 +560,10 @@ public function clear($clause = null) $this->limit = 0; break; + case 'offset': + $this->offset = 0; + break; + case 'union': $this->union = null; break;