Skip to content

Commit

Permalink
Trim selected fields
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinr committed Dec 12, 2024
1 parent 43f44b5 commit f10ab49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend-core/src/sql/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f10ab49

Please sign in to comment.