@rex0220/kintone-sql-tools 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cli/ksql.js +6 -1
- package/package.json +2 -2
package/dist-cli/ksql.js
CHANGED
|
@@ -3652,7 +3652,12 @@ function project(rows, columns, scalarCache) {
|
|
|
3652
3652
|
}
|
|
3653
3653
|
case "STRFUNC_COL": {
|
|
3654
3654
|
const key = col.alias ?? stringFuncDefaultKey(col.expr);
|
|
3655
|
-
|
|
3655
|
+
if (hasAggregateInStringFuncExpr2(col.expr)) {
|
|
3656
|
+
const srcKey = stringFuncDefaultKey(col.expr);
|
|
3657
|
+
out[key] = row[col.alias ?? srcKey] ?? row[srcKey] ?? evalStringFunc(col.expr, row);
|
|
3658
|
+
} else {
|
|
3659
|
+
out[key] = evalStringFunc(col.expr, row);
|
|
3660
|
+
}
|
|
3656
3661
|
if (rowIdx === 0) orderedKeys.push(key);
|
|
3657
3662
|
break;
|
|
3658
3663
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rex0220/kintone-sql-tools",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "kintone SQL plugin and CLI tools (ksql)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"prepack": "npm run build:cli",
|
|
26
26
|
"start": "run-p develop upload",
|
|
27
27
|
"develop": "node build.mjs --watch",
|
|
28
|
-
"upload": "rex0220-plugin-uploader -f dist/ksql-plugin-v1.1.
|
|
28
|
+
"upload": "rex0220-plugin-uploader -f dist/ksql-plugin-v1.1.1.zip --watch"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist-cli/",
|