Comparing version 0.26.17 to 0.26.18
@@ -141,3 +141,6 @@ import { CustomSqlFilterBuilder, } from '../src/filter/filter-consumer-bridge-to-sql-request.js'; | ||
else { | ||
cols.push(e.$dbNameOf(x)); | ||
let name = e.$dbNameOf(x); | ||
if (x.options.sqlExpression) | ||
name = this.knex.raw('?? as ' + x.key, [name]); | ||
cols.push(name); | ||
colKeys.push(x); | ||
@@ -144,0 +147,0 @@ } |
@@ -321,2 +321,4 @@ import { FilterConsumerBridgeToSqlRequest, dbNamesOf, isDbReadonly, } from '../filter/filter-consumer-bridge-to-sql-request.js'; | ||
select += e.$dbNameOf(x); | ||
if (x.options.sqlExpression) | ||
select += ' as ' + x.key; | ||
colKeys.push(x); | ||
@@ -323,0 +325,0 @@ } |
{ | ||
"name": "remult", | ||
"version": "0.26.17", | ||
"version": "0.26.18", | ||
"description": "A CRUD framework for full-stack TypeScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://remult.dev", |
@@ -232,3 +232,3 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var e, cols, colKeys, _a, _b, x, query, br, r_1, r; | ||
var e, cols, colKeys, _a, _b, x, name_1, query, br, r_1, r; | ||
var e_3, _c; | ||
@@ -248,3 +248,6 @@ return tslib_1.__generator(this, function (_d) { | ||
else { | ||
cols.push(e.$dbNameOf(x)); | ||
name_1 = e.$dbNameOf(x); | ||
if (x.options.sqlExpression) | ||
name_1 = this.knex.raw('?? as ' + x.key, [name_1]); | ||
cols.push(name_1); | ||
colKeys.push(x); | ||
@@ -251,0 +254,0 @@ } |
@@ -465,2 +465,4 @@ "use strict"; | ||
select += e.$dbNameOf(x); | ||
if (x.options.sqlExpression) | ||
select += ' as ' + x.key; | ||
colKeys.push(x); | ||
@@ -467,0 +469,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4574993
50637