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 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",
|
||||||
|
|
Loading…
Reference in New Issue