@cap-js/db-service 1.10.1 → 1.10.2
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 +7 -0
- package/lib/cqn4sql.js +2 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
- The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
5
5
|
- This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.10.2](https://github.com/cap-js/cds-dbs/compare/db-service-v1.10.1...db-service-v1.10.2) (2024-06-25)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
* **`expand`:** enable expanding from subquery ([#709](https://github.com/cap-js/cds-dbs/issues/709)) ([5ed03e5](https://github.com/cap-js/cds-dbs/commit/5ed03e5ed64eb46e6f22af120d7285fbcb127a7c)), closes [#708](https://github.com/cap-js/cds-dbs/issues/708)
|
|
13
|
+
|
|
7
14
|
## [1.10.1](https://github.com/cap-js/cds-dbs/compare/db-service-v1.10.0...db-service-v1.10.1) (2024-06-19)
|
|
8
15
|
|
|
9
16
|
|
package/lib/cqn4sql.js
CHANGED
|
@@ -787,7 +787,7 @@ function cqn4sql(originalQuery, model) {
|
|
|
787
787
|
} else {
|
|
788
788
|
outerAlias = transformedQuery.SELECT.from.as
|
|
789
789
|
subqueryFromRef = [
|
|
790
|
-
...transformedQuery.SELECT.from.ref,
|
|
790
|
+
...(transformedQuery.SELECT.from.ref || /* subq in from */ [transformedQuery.SELECT.from.target.name]),
|
|
791
791
|
...(column.$refLinks[0].definition.kind === 'entity' ? column.ref.slice(1) : column.ref),
|
|
792
792
|
]
|
|
793
793
|
}
|
|
@@ -1911,8 +1911,7 @@ function cqn4sql(originalQuery, model) {
|
|
|
1911
1911
|
result[i].ref = [targetSideRefLink.alias, lhs.ref.join('_')]
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
|
-
} else if (lhs.ref.length === 1)
|
|
1915
|
-
result[i].ref.unshift(targetSideRefLink.alias)
|
|
1914
|
+
} else if (lhs.ref.length === 1) result[i].ref.unshift(targetSideRefLink.alias)
|
|
1916
1915
|
}
|
|
1917
1916
|
}
|
|
1918
1917
|
return result
|
package/package.json
CHANGED