SQL gen bugfix #2

This commit is contained in:
2026-04-18 15:27:25 +01:00
parent df195412ac
commit 9e830cfb74
3 changed files with 10 additions and 3 deletions
+4 -1
View File
@@ -3,7 +3,10 @@ export default function sqlGenGrabConcatStr({ alias, field, separator = ",", dis
if (distinct) {
gc += `DISTINCT `;
}
gc += `${field}, '${separator}'`;
gc += `${field}'`;
if (!distinct) {
gc += `, '${separator}`;
}
gc += `)`;
gc += ` AS ${alias}`;
return gc;