@sap/cds 8.9.1 → 8.9.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/compile/for/lean_drafts.js +1 -1
- package/lib/ql/SELECT.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](https://keepachangelog.com/).
|
|
5
5
|
- This project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## Version 8.9.2 - 2025-04-14
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- `forUpdate` will not consider `wait` if `ignoreLocked` is set
|
|
12
|
+
- Do not crash in case of custom `DraftAdministrativeData` table
|
|
13
|
+
|
|
7
14
|
## Version 8.9.1 - 2025-04-03
|
|
8
15
|
|
|
9
16
|
### Fixed
|
|
@@ -144,7 +144,7 @@ module.exports = function cds_compile_for_lean_drafts(csn) {
|
|
|
144
144
|
}
|
|
145
145
|
if (e.name === 'DraftAdministrativeData') {
|
|
146
146
|
// redirect to DraftAdministrativeData service entity
|
|
147
|
-
_redirect(newEl, active._service.entities.DraftAdministrativeData)
|
|
147
|
+
if (active._service?.entities.DraftAdministrativeData) _redirect(newEl, active._service.entities.DraftAdministrativeData)
|
|
148
148
|
}
|
|
149
149
|
Object.defineProperty (newEl,'parent',{value:draft,enumerable:false, configurable: true, writable: true})
|
|
150
150
|
|
package/lib/ql/SELECT.js
CHANGED
|
@@ -152,8 +152,8 @@ class SELECT extends Whereable {
|
|
|
152
152
|
forUpdate ({ of, wait = cds.env.sql.lock_acquire_timeout || -1, ignoreLocked } = {}) {
|
|
153
153
|
const sfu = this.SELECT.forUpdate = {}
|
|
154
154
|
if (of) sfu.of = of.map (c => ({ref:c.split('.')}))
|
|
155
|
-
if (wait >= 0) sfu.wait = wait
|
|
156
155
|
if (ignoreLocked) sfu.ignoreLocked = true
|
|
156
|
+
else if (wait >= 0) sfu.wait = wait
|
|
157
157
|
return this
|
|
158
158
|
}
|
|
159
159
|
|