mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Sphinx Query refactored.
This commit is contained in:
@ -488,7 +488,7 @@ class QueryBuilder extends Object
|
||||
if (is_object($direction)) {
|
||||
$orders[] = (string)$direction;
|
||||
} else {
|
||||
$orders[] = $this->db->quoteColumnName($name) . ($direction === Query::SORT_DESC ? ' DESC' : '');
|
||||
$orders[] = $this->db->quoteColumnName($name) . ($direction === SORT_DESC ? ' DESC' : '');
|
||||
}
|
||||
}
|
||||
|
||||
@ -806,7 +806,7 @@ class QueryBuilder extends Object
|
||||
if (is_object($direction)) {
|
||||
$orders[] = (string)$direction;
|
||||
} else {
|
||||
$orders[] = $this->db->quoteColumnName($name) . ($direction === Query::SORT_DESC ? ' DESC' : '');
|
||||
$orders[] = $this->db->quoteColumnName($name) . ($direction === SORT_DESC ? ' DESC' : '');
|
||||
}
|
||||
}
|
||||
return 'WITHIN GROUP ORDER BY ' . implode(', ', $orders);
|
||||
|
Reference in New Issue
Block a user