@budibase/backend-core 2.33.12 → 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 +5 -4
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +4 -4
- package/dist/src/sql/sql.js +4 -5
- package/dist/src/sql/sql.js.map +1 -1
- package/package.json +4 -4
- package/src/sql/sql.ts +4 -5
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
|
|
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
|
|
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) {
|