@budibase/backend-core 2.33.13 → 2.33.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -75926,14 +75926,15 @@ var InternalBuilder = class {
75926
75926
  }).filter(({ table }) => !table || table === alias).map(({ table, column, field }) => {
75927
75927
  const columnSchema = schema[column];
75928
75928
  if (this.SPECIAL_SELECT_CASES.POSTGRES_MONEY(columnSchema)) {
75929
- return this.knex.raw(`??::money::numeric as "${field}"`, [
75929
+ return this.knex.raw(`??::money::numeric as ??`, [
75930
75930
  this.rawQuotedIdentifier([table, column].join(".")),
75931
- field
75931
+ this.knex.raw(this.quote(field))
75932
75932
  ]);
75933
75933
  }
75934
75934
  if (this.SPECIAL_SELECT_CASES.MSSQL_DATES(columnSchema)) {
75935
- return this.knex.raw(`CONVERT(varchar, ??, 108) as "${field}"`, [
75936
- this.rawQuotedIdentifier(field)
75935
+ return this.knex.raw(`CONVERT(varchar, ??, 108) as ??`, [
75936
+ this.rawQuotedIdentifier(field),
75937
+ this.knex.raw(this.quote(field))
75937
75938
  ]);
75938
75939
  }
75939
75940
  if (table) {