Compare commits

...

2 Commits

Author SHA1 Message Date
Dave Mc Nicoll
756474d460 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-11-01 11:26:10 -04:00
Dave Mc Nicoll
d297fd9e86 - Fixed a bug which caused a problem using offset without limits 2023-11-01 11:25:59 -04:00

View File

@ -259,6 +259,11 @@ class QueryBuilder implements Query\QueryBuilderInterface
if ( null === $offset = $this->getFragment(Query\Offset::class) ) { if ( null === $offset = $this->getFragment(Query\Offset::class) ) {
$offset = new Query\Offset(); $offset = new Query\Offset();
$this->push($offset); $this->push($offset);
# A limit is required to match an offset
if ( null === $limit = $this->getFragment(Query\Limit::class) ) {
$this->limit(\PHP_INT_MAX);
}
} }
$offset->set($value); $offset->set($value);