- Small fix to MsSQL repository
This commit is contained in:
parent
e97df353ae
commit
dfb84c104d
|
@ -8,8 +8,10 @@ class MssqlRepository extends Repository {
|
||||||
|
|
||||||
protected function finalizeQuery() : void
|
protected function finalizeQuery() : void
|
||||||
{
|
{
|
||||||
if ( null === $order = $this->queryBuilder->getFragment(Query\OrderBy::class) ) {
|
if ( $this->queryBuilder->getFragment(Query\MsSQL\Offset::class) ) {
|
||||||
$this->orderBy("(SELECT 0)");
|
if (null === $order = $this->queryBuilder->getFragment(Query\OrderBy::class)) {
|
||||||
|
$this->orderBy("(SELECT 0)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue