@cap-js/db-service 1.19.0 → 1.19.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/CHANGELOG.md +7 -0
- package/lib/cqn4sql.js +1 -1
- 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.19.1](https://github.com/cap-js/cds-dbs/compare/db-service-v1.19.0...db-service-v1.19.1) (2025-04-01)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
* **scoped queries:** wrap filter in `xpr` if needed ([#1105](https://github.com/cap-js/cds-dbs/issues/1105)) ([8f44df3](https://github.com/cap-js/cds-dbs/commit/8f44df37db7bc283933023dab92b348cf92e12bf))
|
|
13
|
+
|
|
7
14
|
## [1.19.0](https://github.com/cap-js/cds-dbs/compare/db-service-v1.18.0...db-service-v1.19.0) (2025-03-31)
|
|
8
15
|
|
|
9
16
|
|
package/lib/cqn4sql.js
CHANGED
|
@@ -1766,7 +1766,7 @@ function cqn4sql(originalQuery, model) {
|
|
|
1766
1766
|
filterConditions.forEach(f => {
|
|
1767
1767
|
transformedWhere.push('and')
|
|
1768
1768
|
if (filterConditions.length > 1) transformedWhere.push(asXpr(f))
|
|
1769
|
-
else if (f.length > 3) transformedWhere.push(asXpr(f))
|
|
1769
|
+
else if (f.length > 3 || f.includes('or') || f.includes('and')) transformedWhere.push(asXpr(f))
|
|
1770
1770
|
else transformedWhere.push(...f)
|
|
1771
1771
|
})
|
|
1772
1772
|
} else {
|
package/package.json
CHANGED