mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Fix usage of COLLATE option.
This commit is contained in:
parent
03eae20378
commit
b34a674427
1 changed files with 1 additions and 1 deletions
|
|
@ -992,7 +992,7 @@ function alert_store:select_historical(filter, fields, download --[[ Available o
|
|||
|
||||
-- [OPTIONAL] Add sort criteria
|
||||
if self._order_by then
|
||||
if (self._order_by.sort_column == 'name') then
|
||||
if (self._order_by.sort_column == 'name' and ntop.isClickHouseEnabled()) then
|
||||
order_by_clause = string.format("ORDER BY %s %s COLLATE 'en'", self._order_by.sort_column, self._order_by.sort_order)
|
||||
else
|
||||
order_by_clause = string.format("ORDER BY %s %s", self._order_by.sort_column, self._order_by.sort_order)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue