SQL gen bugfix #3
This commit is contained in:
parent
9e830cfb74
commit
ca99684183
4
dist/utils/sql-generator-grab-concat-str.js
vendored
4
dist/utils/sql-generator-grab-concat-str.js
vendored
@ -3,9 +3,9 @@ export default function sqlGenGrabConcatStr({ alias, field, separator = ",", dis
|
|||||||
if (distinct) {
|
if (distinct) {
|
||||||
gc += `DISTINCT `;
|
gc += `DISTINCT `;
|
||||||
}
|
}
|
||||||
gc += `${field}'`;
|
gc += `${field}`;
|
||||||
if (!distinct) {
|
if (!distinct) {
|
||||||
gc += `, '${separator}`;
|
gc += `, '${separator}'`;
|
||||||
}
|
}
|
||||||
gc += `)`;
|
gc += `)`;
|
||||||
gc += ` AS ${alias}`;
|
gc += ` AS ${alias}`;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/bun-sqlite",
|
"name": "@moduletrace/bun-sqlite",
|
||||||
"version": "1.1.3",
|
"version": "1.1.4",
|
||||||
"description": "SQLite manager for Bun",
|
"description": "SQLite manager for Bun",
|
||||||
"author": "Benjamin Toby",
|
"author": "Benjamin Toby",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@ -17,11 +17,12 @@ export default function sqlGenGrabConcatStr({
|
|||||||
gc += `DISTINCT `;
|
gc += `DISTINCT `;
|
||||||
}
|
}
|
||||||
|
|
||||||
gc += `${field}'`;
|
gc += `${field}`;
|
||||||
|
|
||||||
if (!distinct) {
|
if (!distinct) {
|
||||||
gc += `, '${separator}`;
|
gc += `, '${separator}'`;
|
||||||
}
|
}
|
||||||
|
|
||||||
gc += `)`;
|
gc += `)`;
|
||||||
gc += ` AS ${alias}`;
|
gc += ` AS ${alias}`;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user