@abaplint/transpiler-cli 2.14.26 → 2.14.27

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.
Files changed (2) hide show
  1. package/build/bundle.js +243 -24
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -73322,9 +73322,19 @@ class View extends _abstract_object_1.AbstractObject {
73322
73322
  continue;
73323
73323
  }
73324
73324
  else if (this.parsedData.header.VIEWCLASS === ViewClass.ExternalView) {
73325
+ // for external views TABNAME is the view itself, the types are given directly in the xml
73326
+ let type = Types.VoidType.get("ExternalView");
73327
+ if (field.EXVDATATYPE !== undefined) {
73328
+ type = ddic.textToType({
73329
+ text: field.EXVDATATYPE,
73330
+ length: field.EXVFLENGTH,
73331
+ decimals: field.EXVDECIMALS,
73332
+ infoText: this.getName() + "-" + field.VIEWFIELD,
73333
+ });
73334
+ }
73325
73335
  components.push({
73326
73336
  name: field.VIEWFIELD,
73327
- type: Types.VoidType.get("ExternalView")
73337
+ type: type
73328
73338
  });
73329
73339
  continue;
73330
73340
  }
@@ -73412,6 +73422,9 @@ class View extends _abstract_object_1.AbstractObject {
73412
73422
  TABNAME: field.TABNAME,
73413
73423
  FIELDNAME: field.FIELDNAME,
73414
73424
  KEYFLAG: field.KEYFLAG,
73425
+ EXVDATATYPE: typeof field.EXVDATATYPE === "string" && field.EXVDATATYPE !== "" ? field.EXVDATATYPE : undefined,
73426
+ EXVFLENGTH: typeof field.EXVFLENGTH === "string" ? field.EXVFLENGTH : undefined,
73427
+ EXVDECIMALS: typeof field.EXVDECIMALS === "string" ? field.EXVDECIMALS : undefined,
73415
73428
  });
73416
73429
  }
73417
73430
  const join = (_j = (_h = (_g = parsed === null || parsed === void 0 ? void 0 : parsed.abapGit) === null || _g === void 0 ? void 0 : _g["asx:abap"]) === null || _h === void 0 ? void 0 : _h["asx:values"]) === null || _j === void 0 ? void 0 : _j.DD28J_TABLE;
@@ -74263,7 +74276,7 @@ class Registry {
74263
74276
  }
74264
74277
  static abaplintVersion() {
74265
74278
  // magic, see build script "version.js"
74266
- return "2.120.98";
74279
+ return "2.120.99";
74267
74280
  }
74268
74281
  getDDICReferences() {
74269
74282
  return this.ddicReferences;
@@ -117229,6 +117242,70 @@ function packedTypeToDatabase(type) {
117229
117242
 
117230
117243
  /***/ },
117231
117244
 
117245
+ /***/ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/external_view.js"
117246
+ /*!*******************************************************************************************!*\
117247
+ !*** ./node_modules/@abaplint/transpiler/build/src/db/schema_generation/external_view.js ***!
117248
+ \*******************************************************************************************/
117249
+ (__unused_webpack_module, exports, __webpack_require__) {
117250
+
117251
+ "use strict";
117252
+
117253
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
117254
+ if (k2 === undefined) k2 = k;
117255
+ var desc = Object.getOwnPropertyDescriptor(m, k);
117256
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
117257
+ desc = { enumerable: true, get: function() { return m[k]; } };
117258
+ }
117259
+ Object.defineProperty(o, k2, desc);
117260
+ }) : (function(o, m, k, k2) {
117261
+ if (k2 === undefined) k2 = k;
117262
+ o[k2] = m[k];
117263
+ }));
117264
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
117265
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
117266
+ }) : function(o, v) {
117267
+ o["default"] = v;
117268
+ });
117269
+ var __importStar = (this && this.__importStar) || (function () {
117270
+ var ownKeys = function(o) {
117271
+ ownKeys = Object.getOwnPropertyNames || function (o) {
117272
+ var ar = [];
117273
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
117274
+ return ar;
117275
+ };
117276
+ return ownKeys(o);
117277
+ };
117278
+ return function (mod) {
117279
+ if (mod && mod.__esModule) return mod;
117280
+ var result = {};
117281
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
117282
+ __setModuleDefault(result, mod);
117283
+ return result;
117284
+ };
117285
+ })();
117286
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
117287
+ exports.ExternalView = void 0;
117288
+ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
117289
+ /** External view, VIEWCLASS X: a DDIC view on a HANA view, eg. a calculation view. Its definition lives
117290
+ * in HANA, so locally it becomes a table with the declared columns which tests can fill with data */
117291
+ class ExternalView {
117292
+ static isExternal(view) {
117293
+ return /<VIEWCLASS>X<\/VIEWCLASS>/.test(view.getXMLFile()?.getRaw() || "");
117294
+ }
117295
+ static columns(view, reg) {
117296
+ const type = view.parseType(reg);
117297
+ if (!(type instanceof abaplint.BasicTypes.StructureType)) {
117298
+ throw new Error(`External view ${view.getName()}: no fields`);
117299
+ }
117300
+ // the field types come from EXVDATATYPE, abaplint types the fields void if it is missing
117301
+ return { columns: [...type.getComponents()], keys: view.listKeys() };
117302
+ }
117303
+ }
117304
+ exports.ExternalView = ExternalView;
117305
+ //# sourceMappingURL=external_view.js.map
117306
+
117307
+ /***/ },
117308
+
117232
117309
  /***/ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/pg_database_schema.js"
117233
117310
  /*!************************************************************************************************!*\
117234
117311
  !*** ./node_modules/@abaplint/transpiler/build/src/db/schema_generation/pg_database_schema.js ***!
@@ -117273,6 +117350,7 @@ var __importStar = (this && this.__importStar) || (function () {
117273
117350
  Object.defineProperty(exports, "__esModule", ({ value: true }));
117274
117351
  exports.PGDatabaseSchema = void 0;
117275
117352
  const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
117353
+ const external_view_1 = __webpack_require__(/*! ./external_view */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/external_view.js");
117276
117354
  const database_schema_generator_1 = __webpack_require__(/*! ./database_schema_generator */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/database_schema_generator.js");
117277
117355
  const _database_schema_reuse_1 = __webpack_require__(/*! ./_database_schema_reuse */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/_database_schema_reuse.js");
117278
117356
  const QUOTE = "\"";
@@ -117282,6 +117360,10 @@ class PGDatabaseSchema {
117282
117360
  this.reg = reg;
117283
117361
  }
117284
117362
  buildVIEW(view) {
117363
+ if (external_view_1.ExternalView.isExternal(view)) {
117364
+ const { columns, keys } = external_view_1.ExternalView.columns(view, this.reg);
117365
+ return this.createTable(view.getName(), columns, keys);
117366
+ }
117285
117367
  return new _database_schema_reuse_1.DatabaseSchemaReuse(QUOTE).buildVIEW(view);
117286
117368
  }
117287
117369
  buildTABL(tabl) {
@@ -117289,22 +117371,25 @@ class PGDatabaseSchema {
117289
117371
  if (!(type instanceof abaplint.BasicTypes.StructureType)) {
117290
117372
  return "";
117291
117373
  }
117292
- const fields = [];
117293
- const fieldsRaw = [];
117374
+ const columns = [];
117294
117375
  for (const field of type.getComponents()) {
117295
117376
  if (field.type instanceof abaplint.BasicTypes.StructureType) {
117296
117377
  // is a GROUP NAME
117297
117378
  continue;
117298
117379
  }
117299
- fieldsRaw.push(field.name.toLowerCase());
117300
- fields.push("\"" + field.name.toLowerCase() + "\" " + this.toType(field.type, field.name, tabl.getName()));
117380
+ columns.push(field);
117301
117381
  }
117302
117382
  // assumption: all transparent tables have primary keys
117303
- // add single quotes to field names to allow for keywords as field names
117304
- const key = ", PRIMARY KEY(" + tabl.listKeys(this.reg)
117383
+ return this.createTable(tabl.getName(), columns, tabl.listKeys(this.reg));
117384
+ }
117385
+ createTable(name, columns, keys) {
117386
+ const fieldsRaw = columns.map(c => c.name.toLowerCase());
117387
+ // quote field names to allow for keywords as field names
117388
+ const fields = columns.map(c => "\"" + c.name.toLowerCase() + "\" " + this.toType(c.type, c.name, name));
117389
+ const key = ", PRIMARY KEY(" + keys
117305
117390
  .filter(e => fieldsRaw.includes(e.toLowerCase()))
117306
117391
  .map(e => "\"" + e.toLowerCase() + "\"").join(",") + ")";
117307
- return `CREATE TABLE "${tabl.getName().toLowerCase()}" (${fields.join(", ")}${key});\n`;
117392
+ return `CREATE TABLE "${name.toLowerCase()}" (${fields.join(", ")}${key});\n`;
117308
117393
  }
117309
117394
  toType(type, fieldname, errorInfo) {
117310
117395
  if (type instanceof abaplint.BasicTypes.CharacterType) {
@@ -117400,13 +117485,18 @@ var __importStar = (this && this.__importStar) || (function () {
117400
117485
  Object.defineProperty(exports, "__esModule", ({ value: true }));
117401
117486
  exports.SnowflakeDatabaseSchema = void 0;
117402
117487
  const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
117488
+ const external_view_1 = __webpack_require__(/*! ./external_view */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/external_view.js");
117403
117489
  const database_schema_generator_1 = __webpack_require__(/*! ./database_schema_generator */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/database_schema_generator.js");
117404
117490
  class SnowflakeDatabaseSchema {
117405
117491
  reg;
117406
117492
  constructor(reg) {
117407
117493
  this.reg = reg;
117408
117494
  }
117409
- buildVIEW(_view) {
117495
+ buildVIEW(view) {
117496
+ if (external_view_1.ExternalView.isExternal(view)) {
117497
+ const { columns, keys } = external_view_1.ExternalView.columns(view, this.reg);
117498
+ return this.createTable(view.getName(), columns, keys);
117499
+ }
117410
117500
  return "Error: buildView, todo snowflake";
117411
117501
  }
117412
117502
  buildTABL(tabl) {
@@ -117414,22 +117504,25 @@ class SnowflakeDatabaseSchema {
117414
117504
  if (!(type instanceof abaplint.BasicTypes.StructureType)) {
117415
117505
  return "";
117416
117506
  }
117417
- const fields = [];
117418
- const fieldsRaw = [];
117507
+ const columns = [];
117419
117508
  for (const field of type.getComponents()) {
117420
117509
  if (field.type instanceof abaplint.BasicTypes.StructureType) {
117421
117510
  // is a GROUP NAME
117422
117511
  continue;
117423
117512
  }
117424
- fieldsRaw.push(field.name.toLowerCase());
117425
- fields.push("\"" + field.name.toLowerCase() + "\" " + this.toType(field.type, field.name, tabl.getName()));
117513
+ columns.push(field);
117426
117514
  }
117427
117515
  // assumption: all transparent tables have primary keys
117428
- // add single quotes to field names to allow for keywords as field names
117429
- const key = ", PRIMARY KEY(" + tabl.listKeys(this.reg)
117516
+ return this.createTable(tabl.getName(), columns, tabl.listKeys(this.reg));
117517
+ }
117518
+ createTable(name, columns, keys) {
117519
+ const fieldsRaw = columns.map(c => c.name.toLowerCase());
117520
+ // quote field names to allow for keywords as field names
117521
+ const fields = columns.map(c => "\"" + c.name.toLowerCase() + "\" " + this.toType(c.type, c.name, name));
117522
+ const key = ", PRIMARY KEY(" + keys
117430
117523
  .filter(e => fieldsRaw.includes(e.toLowerCase()))
117431
117524
  .map(e => "\"" + e.toLowerCase() + "\"").join(",") + ")";
117432
- return `CREATE TABLE "${tabl.getName().toLowerCase()}" (${fields.join(", ")}${key});\n`;
117525
+ return `CREATE TABLE "${name.toLowerCase()}" (${fields.join(", ")}${key});\n`;
117433
117526
  }
117434
117527
  // https://docs.snowflake.com/en/sql-reference/collation
117435
117528
  toType(type, fieldname, errorInfo) {
@@ -117526,6 +117619,7 @@ var __importStar = (this && this.__importStar) || (function () {
117526
117619
  Object.defineProperty(exports, "__esModule", ({ value: true }));
117527
117620
  exports.SQLiteDatabaseSchema = void 0;
117528
117621
  const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
117622
+ const external_view_1 = __webpack_require__(/*! ./external_view */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/external_view.js");
117529
117623
  const database_schema_generator_1 = __webpack_require__(/*! ./database_schema_generator */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/database_schema_generator.js");
117530
117624
  const _database_schema_reuse_1 = __webpack_require__(/*! ./_database_schema_reuse */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/_database_schema_reuse.js");
117531
117625
  const QUOTE = "'";
@@ -117536,6 +117630,10 @@ class SQLiteDatabaseSchema {
117536
117630
  }
117537
117631
  // https://www.sqlite.org/lang_createview.html
117538
117632
  buildVIEW(view) {
117633
+ if (external_view_1.ExternalView.isExternal(view)) {
117634
+ const { columns, keys } = external_view_1.ExternalView.columns(view, this.reg);
117635
+ return this.createTable(view.getName(), columns, keys);
117636
+ }
117539
117637
  return new _database_schema_reuse_1.DatabaseSchemaReuse(QUOTE).buildVIEW(view);
117540
117638
  }
117541
117639
  buildTABL(tabl) {
@@ -117543,22 +117641,25 @@ class SQLiteDatabaseSchema {
117543
117641
  if (!(type instanceof abaplint.BasicTypes.StructureType)) {
117544
117642
  return "";
117545
117643
  }
117546
- const fields = [];
117547
- const fieldsRaw = [];
117644
+ const columns = [];
117548
117645
  for (const field of type.getComponents()) {
117549
117646
  if (field.type instanceof abaplint.BasicTypes.StructureType) {
117550
117647
  // is a GROUP NAME
117551
117648
  continue;
117552
117649
  }
117553
- fieldsRaw.push(field.name.toLowerCase());
117554
- fields.push("'" + field.name.toLowerCase() + "' " + this.toType(field.type, field.name, tabl.getName()));
117650
+ columns.push(field);
117555
117651
  }
117556
117652
  // assumption: all transparent tables have primary keys
117557
- // add single quotes to field names to allow for keywords as field names
117558
- const key = ", PRIMARY KEY(" + tabl.listKeys(this.reg)
117653
+ return this.createTable(tabl.getName(), columns, tabl.listKeys(this.reg));
117654
+ }
117655
+ createTable(name, columns, keys) {
117656
+ const fieldsRaw = columns.map(c => c.name.toLowerCase());
117657
+ // quote field names to allow for keywords as field names
117658
+ const fields = columns.map(c => "'" + c.name.toLowerCase() + "' " + this.toType(c.type, c.name, name));
117659
+ const key = ", PRIMARY KEY(" + keys
117559
117660
  .filter(e => fieldsRaw.includes(e.toLowerCase()))
117560
117661
  .map(e => "'" + e.toLowerCase() + "'").join(",") + ")";
117561
- return `CREATE TABLE '${tabl.getName().toLowerCase()}' (${fields.join(", ")}${key});\n`;
117662
+ return `CREATE TABLE '${name.toLowerCase()}' (${fields.join(", ")}${key});\n`;
117562
117663
  }
117563
117664
  toType(type, fieldname, errorInfo) {
117564
117665
  if (type instanceof abaplint.BasicTypes.CharacterType) {
@@ -121616,6 +121717,7 @@ const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_mod
121616
121717
  const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/transpiler/build/src/expressions/source.js");
121617
121718
  const sql_field_list_1 = __webpack_require__(/*! ./sql_field_list */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_list.js");
121618
121719
  const sql_from_1 = __webpack_require__(/*! ./sql_from */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_from.js");
121720
+ const sql_function_1 = __webpack_require__(/*! ./sql_function */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_function.js");
121619
121721
  class SQLCondTranspiler {
121620
121722
  transpile(node, traversal, table) {
121621
121723
  let ret = "";
@@ -121723,6 +121825,12 @@ class SQLCondTranspiler {
121723
121825
  ret += fieldName + " IS NULL";
121724
121826
  return ret;
121725
121827
  }
121828
+ const sqlFunction = c.findDirectExpression(abaplint.Expressions.SQLFunction);
121829
+ if (sqlFunction && c.getFirstChild() === sqlFunction && operator && source) {
121830
+ return new sql_function_1.SQLFunctionTranspiler().transpile(sqlFunction, traversal).getCode() + " "
121831
+ + this.sqlOperator(operator.concatTokens()) + " "
121832
+ + this.sqlSource(source, traversal, filename, table);
121833
+ }
121726
121834
  const aggregation = c.findDirectExpression(abaplint.Expressions.SQLAggregation);
121727
121835
  if (aggregation && operator && source) {
121728
121836
  return aggregation.concatTokens() + " " + this.sqlOperator(operator.concatTokens()) + " "
@@ -122368,6 +122476,117 @@ exports.SQLFromSourceTranspiler = SQLFromSourceTranspiler;
122368
122476
 
122369
122477
  /***/ },
122370
122478
 
122479
+ /***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_function.js"
122480
+ /*!*********************************************************************************!*\
122481
+ !*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_function.js ***!
122482
+ \*********************************************************************************/
122483
+ (__unused_webpack_module, exports, __webpack_require__) {
122484
+
122485
+ "use strict";
122486
+
122487
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
122488
+ if (k2 === undefined) k2 = k;
122489
+ var desc = Object.getOwnPropertyDescriptor(m, k);
122490
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
122491
+ desc = { enumerable: true, get: function() { return m[k]; } };
122492
+ }
122493
+ Object.defineProperty(o, k2, desc);
122494
+ }) : (function(o, m, k, k2) {
122495
+ if (k2 === undefined) k2 = k;
122496
+ o[k2] = m[k];
122497
+ }));
122498
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
122499
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
122500
+ }) : function(o, v) {
122501
+ o["default"] = v;
122502
+ });
122503
+ var __importStar = (this && this.__importStar) || (function () {
122504
+ var ownKeys = function(o) {
122505
+ ownKeys = Object.getOwnPropertyNames || function (o) {
122506
+ var ar = [];
122507
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
122508
+ return ar;
122509
+ };
122510
+ return ownKeys(o);
122511
+ };
122512
+ return function (mod) {
122513
+ if (mod && mod.__esModule) return mod;
122514
+ var result = {};
122515
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
122516
+ __setModuleDefault(result, mod);
122517
+ return result;
122518
+ };
122519
+ })();
122520
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
122521
+ exports.SQLFunctionTranspiler = void 0;
122522
+ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
122523
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
122524
+ const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js");
122525
+ const simple_source3_1 = __webpack_require__(/*! ./simple_source3 */ "./node_modules/@abaplint/transpiler/build/src/expressions/simple_source3.js");
122526
+ const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/transpiler/build/src/expressions/source.js");
122527
+ /** SQL function call like substring( field, 8, 1 ), passed through by name */
122528
+ class SQLFunctionTranspiler {
122529
+ transpile(node, traversal) {
122530
+ const name = node.getFirstToken().getStr().toLowerCase();
122531
+ const inputs = node.findDirectExpressions(abaplint.Expressions.SQLFunctionInput)
122532
+ .map(i => this.input(i, traversal));
122533
+ return new chunk_1.Chunk().appendString(name + "(" + inputs.join(", ") + ")");
122534
+ }
122535
+ input(node, traversal) {
122536
+ const ret = [];
122537
+ let host = false;
122538
+ for (const c of node.getChildren()) {
122539
+ if (c instanceof abaplint.Nodes.TokenNode) {
122540
+ if (c.getFirstToken().getStr() === "@") {
122541
+ host = true;
122542
+ }
122543
+ else {
122544
+ ret.push(c.concatTokens());
122545
+ }
122546
+ continue;
122547
+ }
122548
+ const get = c.get();
122549
+ if (host && get instanceof abaplint.Expressions.SimpleSource3) {
122550
+ const code = new simple_source3_1.SimpleSource3Transpiler(true).transpile(c, traversal).getCode();
122551
+ ret.push(`'" + abap.sqlEscape(${code}) + "'`);
122552
+ host = false;
122553
+ }
122554
+ else if (host && get instanceof abaplint.Expressions.Source) {
122555
+ const code = new source_1.SourceTranspiler(true).transpile(c, traversal).getCode();
122556
+ ret.push(`'" + abap.sqlEscape(${code}) + "'`);
122557
+ host = false;
122558
+ }
122559
+ else if (get instanceof abaplint.Expressions.SQLFieldName && /^\d+$/.test(c.concatTokens())) {
122560
+ // integer literals are parsed as field names
122561
+ ret.push(c.concatTokens());
122562
+ }
122563
+ else if (get instanceof abaplint.Expressions.SQLFieldName || get instanceof abaplint.Expressions.SQLAliasField) {
122564
+ ret.push(new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal).getCode());
122565
+ }
122566
+ else if (get instanceof abaplint.Expressions.SQLFunction) {
122567
+ ret.push(this.transpile(c, traversal).getCode());
122568
+ }
122569
+ else if (get instanceof abaplint.Expressions.SQLFunctionInput) {
122570
+ ret.push(this.input(c, traversal));
122571
+ }
122572
+ else {
122573
+ const concat = c.concatTokens();
122574
+ if (concat.startsWith("`")) {
122575
+ ret.push("'" + concat.substring(1, concat.length - 1).replace(/'/g, "''") + "'");
122576
+ }
122577
+ else {
122578
+ ret.push(concat);
122579
+ }
122580
+ }
122581
+ }
122582
+ return ret.join(" ").replace(/\( /g, "(").replace(/ \)/g, ")");
122583
+ }
122584
+ }
122585
+ exports.SQLFunctionTranspiler = SQLFunctionTranspiler;
122586
+ //# sourceMappingURL=sql_function.js.map
122587
+
122588
+ /***/ },
122589
+
122371
122590
  /***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_group_by.js"
122372
122591
  /*!*********************************************************************************!*\
122373
122592
  !*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_group_by.js ***!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.14.26",
3
+ "version": "2.14.27",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -27,8 +27,8 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@abaplint/core": "^2.120.98",
31
- "@abaplint/transpiler": "^2.14.26",
30
+ "@abaplint/core": "^2.120.99",
31
+ "@abaplint/transpiler": "^2.14.27",
32
32
  "@types/glob": "^9.0.0",
33
33
  "@types/node": "^26.6.6",
34
34
  "@types/progress": "^2.0.7",