This commit is contained in:
archben
2025-09-21 09:04:58 +01:00
parent 0fcd92ab3e
commit 557bbb30bd
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
else if ((_a = genObject === null || genObject === void 0 ? void 0 : genObject.selectFields) === null || _a === void 0 ? void 0 : _a[0]) {
if (genObject.join) {
str += ` ${(_b = genObject.selectFields) === null || _b === void 0 ? void 0 : _b.map((fld) => typeof fld == "object"
? `${finalDbName}${tableName}.${fld.fieldName}` +
? `${finalDbName}${tableName}.${fld.fieldName.toString()}` +
fld.alias
? ` as ${fld.alias}`
: ``
@@ -156,7 +156,7 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
}
else {
str += ` ${(_c = genObject.selectFields) === null || _c === void 0 ? void 0 : _c.map((fld) => typeof fld == "object"
? `${fld.fieldName}` + fld.alias
? `${fld.fieldName.toString()}` + fld.alias
? ` as ${fld.alias}`
: ``
: fld).join(",")}`;