Skip to content

Commit

Permalink
Using a query expression instead of a full query object
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 13, 2014
1 parent fa47ed6 commit 5b0e715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Dialect/SqlserverDialectTrait.php
Expand Up @@ -57,7 +57,7 @@ protected function _selectQueryTranslator($query) {
}

if ($offset !== null && !$query->clause('order')) {
$query->order([$query->connection()->newQuery()->select(['NULL'])]);
$query->order($query->newExpr()->add('SELECT NULL'));
}

return $query;
Expand Down

0 comments on commit 5b0e715

Please sign in to comment.