Hello Benjamin,
First I want to thank you for this awesome library it really speeds up the process of pagination and I've been using for some time.
I have a weird case where the library is overriding the orderBy defined in the query.
const query = this.query.createQueryBuilder('table').orderBy('LOWER(name)', 'ASC').where(SOME_CONDITION)
If I log the SQL that this query will create it gives me the intended SQL with the ORDER BY LOWER("name") ASC in the end of the SQL.
But when I pass the query to the paginator It gets overridden with ORDER BY "name" ASC
In our case, our database is sorted with case sensitive so we need to introduce the LOWER on the order to ensure that we have a proper order.
I tested this on the new v0.9.1 thinking that your latest release might have fixed it but I still have it.
Is there anything that I'm missing here? Is there a way to make the paginator not override the orderBy from the query?
Hello Benjamin,
First I want to thank you for this awesome library it really speeds up the process of pagination and I've been using for some time.
I have a weird case where the library is overriding the
orderBydefined in the query.If I log the SQL that this query will create it gives me the intended SQL with the
ORDER BY LOWER("name") ASCin the end of the SQL.But when I pass the query to the paginator It gets overridden with
ORDER BY "name" ASCIn our case, our database is sorted with case sensitive so we need to introduce the LOWER on the order to ensure that we have a proper order.
I tested this on the new v0.9.1 thinking that your latest release might have fixed it but I still have it.
Is there anything that I'm missing here? Is there a way to make the paginator not override the
orderByfrom the query?