SQL gen bugfix #2
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/bun-sqlite",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"description": "SQLite manager for Bun",
|
||||
"author": "Benjamin Toby",
|
||||
"main": "dist/index.js",
|
||||
|
||||
@@ -17,7 +17,11 @@ export default function sqlGenGrabConcatStr({
|
||||
gc += `DISTINCT `;
|
||||
}
|
||||
|
||||
gc += `${field}, '${separator}'`;
|
||||
gc += `${field}'`;
|
||||
|
||||
if (!distinct) {
|
||||
gc += `, '${separator}`;
|
||||
}
|
||||
gc += `)`;
|
||||
gc += ` AS ${alias}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user