@abaplint/transpiler 2.13.42 → 2.13.43

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.
@@ -200,7 +200,7 @@ class SelectTranspiler {
200
200
  dynamicSQLClause(keyword, code) {
201
201
  return `(${code} instanceof abap.types.Table || ${code} instanceof abap.types.HashedTable`
202
202
  + ` ? (${code}.array().length === 0 ? "" : "${keyword} " + ${code}.array().map(row => row.get()).join(", "))`
203
- + ` : "${keyword} " + ${code}.get())`;
203
+ + ` : (("" + ${code}.get()).trim() === "" ? "" : "${keyword} " + ${code}.get()))`;
204
204
  }
205
205
  isWhereExpression(node, expression) {
206
206
  // check if previous token before sqlCond is "WHERE". It could also be "ON" in case of join condition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.13.42",
3
+ "version": "2.13.43",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",