- Fixed a bug which caused a problem using offset without limits
This commit is contained in:
		
							parent
							
								
									8e0dce3e71
								
							
						
					
					
						commit
						d297fd9e86
					
				| @ -259,6 +259,11 @@ class QueryBuilder implements Query\QueryBuilderInterface | ||||
|         if ( null === $offset = $this->getFragment(Query\Offset::class) ) { | ||||
|             $offset = new Query\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); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user