Fix formulas on internal
This commit is contained in:
parent
f92fcea42a
commit
f8ece82648
|
@ -315,11 +315,10 @@ class InternalBuilder {
|
|||
})
|
||||
.filter(({ table }) => !table || table === alias)
|
||||
|
||||
if (
|
||||
this.isFullSelectStatementRequired(
|
||||
tableFields.map(({ column }) => column)
|
||||
)
|
||||
) {
|
||||
const requestedTableColumns = tableFields.map(({ column }) =>
|
||||
column.replace(new RegExp(`^${this.query.meta?.columnPrefix}`), "")
|
||||
)
|
||||
if (this.isFullSelectStatementRequired(requestedTableColumns)) {
|
||||
return [this.knex.raw("??", [`${alias}.*`])]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue