Updates
This commit is contained in:
+2
-2
@@ -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(",")}`;
|
||||
|
||||
Reference in New Issue
Block a user