This commit is contained in:
2026-02-22 14:21:03 +01:00
parent 0e44676226
commit 3d0ee2e688
5 changed files with 9 additions and 3 deletions
@@ -116,6 +116,9 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
}
return `${finalDbName}${typeof mtch.source == "object" ? mtch.source.tableName : tableName}.${typeof mtch.source == "object" ? mtch.source.fieldName : mtch.source}=${(() => {
if (mtch.targetLiteral) {
if (typeof mtch.targetLiteral == "number") {
return `${mtch.targetLiteral}`;
}
return `'${mtch.targetLiteral}'`;
}
if (join.alias) {