Trim selected fields

This commit is contained in:
Adria Navarro 2024-12-12 13:58:37 +01:00
parent 76b0a96b73
commit 631317e6f0
1 changed files with 1 additions and 1 deletions

View File

@ -1591,7 +1591,7 @@ class InternalBuilder {
const mainTable = this.query.tableAliases?.[table.name] || table.name const mainTable = this.query.tableAliases?.[table.name] || table.name
const cte = this.addSorting( const cte = this.addSorting(
this.knex this.knex
.with("paginated", query) .with("paginated", query.clone().clearSelect().select("*"))
.select(this.generateSelectStatement()) .select(this.generateSelectStatement())
.from({ .from({
[mainTable]: "paginated", [mainTable]: "paginated",