@sap/cds-compiler 5.9.12 → 5.9.14

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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@
7
7
  Note: `beta` fixes, changes and features are usually not listed in this ChangeLog but [here](doc/CHANGELOG_BETA.md).
8
8
  The compiler behavior concerning `beta` features can change at any time without notice.
9
9
 
10
+ ## Verion 5.9.14 - 2025-12-03
11
+
12
+ ### Fixed
13
+
14
+ - to.sql|hdi: Don't add superfluous and sometimes wrong (SQLite) parentheses around `UNION`s
15
+
10
16
  ## Version 5.9.12 - 2025-09-19
11
17
 
12
18
  ### Fixed
@@ -1307,11 +1307,7 @@ function toSqlDdl( csn, options, messageFunctions ) {
1307
1307
 
1308
1308
  // Set operation may also have an ORDER BY and LIMIT/OFFSET (in contrast to the ones belonging to
1309
1309
  // each SELECT)
1310
- // If the whole SET has an ORDER BY/LIMIT, wrap the part before that in parentheses
1311
- // (otherwise some SQL implementations (e.g. sqlite) would interpret the ORDER BY/LIMIT as belonging
1312
- // to the last SET argument, not to the whole SET)
1313
1310
  if (query.SET.orderBy || query.SET.limit) {
1314
- result = `(${result})`;
1315
1311
  if (query.SET.orderBy) {
1316
1312
  const orderBy = query.SET.orderBy.map(entry => renderOrderByEntry(entry, env.withSubPath([ 'orderBy' ]))).join(', ');
1317
1313
  result += `\n${env.indent}ORDER BY ${orderBy}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-compiler",
3
- "version": "5.9.12",
3
+ "version": "5.9.14",
4
4
  "description": "CDS (Core Data Services) compiler and backends",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "author": "SAP SE (https://www.sap.com)",