SQL gen bugfix #3

This commit is contained in:
Benjamin Toby 2026-04-18 15:30:18 +01:00
parent 9e830cfb74
commit ca99684183
3 changed files with 6 additions and 5 deletions

View File

@ -3,9 +3,9 @@ export default function sqlGenGrabConcatStr({ alias, field, separator = ",", dis
if (distinct) {
gc += `DISTINCT `;
}
gc += `${field}'`;
gc += `${field}`;
if (!distinct) {
gc += `, '${separator}`;
gc += `, '${separator}'`;
}
gc += `)`;
gc += ` AS ${alias}`;

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/bun-sqlite",
"version": "1.1.3",
"version": "1.1.4",
"description": "SQLite manager for Bun",
"author": "Benjamin Toby",
"main": "dist/index.js",

View File

@ -17,11 +17,12 @@ export default function sqlGenGrabConcatStr({
gc += `DISTINCT `;
}
gc += `${field}'`;
gc += `${field}`;
if (!distinct) {
gc += `, '${separator}`;
gc += `, '${separator}'`;
}
gc += `)`;
gc += ` AS ${alias}`;