explicit order criteria only on MSSQL #436

This commit is contained in:
Jan Prochazka
2023-02-04 15:58:45 +01:00
parent 57fa9335d4
commit 83ba530112
3 changed files with 11 additions and 7 deletions

View File

@@ -519,13 +519,15 @@ export abstract class GridDisplay {
alias: 'basetbl',
},
columns: columns.map(col => this.createColumnExpression(col, { alias: 'basetbl' })),
orderBy: [
{
exprType: 'column',
columnName: orderColumnName,
direction: 'ASC',
},
],
orderBy: this.driver?.requiresDefaultSortCriteria
? [
{
exprType: 'column',
columnName: orderColumnName,
direction: 'ASC',
},
]
: null,
};
const displayedColumnInfo = _.keyBy(
this.columns.map(col => ({ ...col, sourceAlias: 'basetbl' })),