Skip to content
Permalink
Browse files

Fix missing parens in SQLServer

Subqueries in ORDER BY need parentheses in SQLServer.
  • Loading branch information...
markstory committed Aug 8, 2015
1 parent 095a091 commit f65eddd18372873abec04880b39502bd344d1a7c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Database/Dialect/SqlserverDialectTrait.php
@@ -65,7 +65,7 @@ protected function _selectQueryTranslator($query)
}
if ($offset !== null && !$query->clause('order')) {
$query->order($query->newExpr()->add('SELECT NULL'));
$query->order($query->newExpr()->add('(SELECT NULL)'));
}
if ($this->_version() < 11 && $offset !== null) {

0 comments on commit f65eddd

Please sign in to comment.
You can’t perform that action at this time.