fix offset
This commit is contained in:
parent
ec53a3f940
commit
92f2dbb4fe
|
@ -357,10 +357,7 @@ class Query extends Component implements QueryInterface
|
||||||
{
|
{
|
||||||
$aql = '';
|
$aql = '';
|
||||||
if ($this->hasLimit($limit)) {
|
if ($this->hasLimit($limit)) {
|
||||||
$aql = 'LIMIT ' . $limit;
|
$aql = 'LIMIT ' . ($this->hasOffset($offset) ? $offset : '0') . ',' . $limit;
|
||||||
if ($this->hasOffset($offset)) {
|
|
||||||
$aql .= ', ' . $offset;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $aql;
|
return $aql;
|
||||||
|
|
Loading…
Reference in New Issue