Trim selected fields
This commit is contained in:
parent
76b0a96b73
commit
631317e6f0
|
@ -1591,7 +1591,7 @@ class InternalBuilder {
|
|||
const mainTable = this.query.tableAliases?.[table.name] || table.name
|
||||
const cte = this.addSorting(
|
||||
this.knex
|
||||
.with("paginated", query)
|
||||
.with("paginated", query.clone().clearSelect().select("*"))
|
||||
.select(this.generateSelectStatement())
|
||||
.from({
|
||||
[mainTable]: "paginated",
|
||||
|
|
Loading…
Reference in New Issue