@cap-js/sqlite 1.7.4 → 1.7.5
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/SQLiteService.js +4 -4
- 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.7.5](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.4...sqlite-v1.7.5) (2024-10-28)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
* properly support `default`, `cds.on.insert` and `cds.on.update` for `UPSERT` queries ([#425](https://github.com/cap-js/cds-dbs/issues/425)) ([338e9f5](https://github.com/cap-js/cds-dbs/commit/338e9f5de9109d36013208547fc648c17ce8c7b0))
|
|
13
|
+
|
|
7
14
|
## [1.7.4](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.3...sqlite-v1.7.4) (2024-10-15)
|
|
8
15
|
|
|
9
16
|
|
package/lib/SQLiteService.js
CHANGED
|
@@ -192,12 +192,12 @@ class SQLiteService extends SQLService {
|
|
|
192
192
|
...super.InputConverters,
|
|
193
193
|
// The following allows passing in ISO strings with non-zulu
|
|
194
194
|
// timezones and converts them into zulu dates and times
|
|
195
|
-
Date: e => `strftime('%Y-%m-%d',${e})`,
|
|
196
|
-
Time: e => `strftime('%H:%M:%S',${e})`,
|
|
195
|
+
Date: e => e === '?' ? e : `strftime('%Y-%m-%d',${e})`,
|
|
196
|
+
Time: e => e === '?' ? e : `strftime('%H:%M:%S',${e})`,
|
|
197
197
|
// Both, DateTimes and Timestamps are canonicalized to ISO strings with
|
|
198
198
|
// ms precision to allow safe comparisons, also to query {val}s in where clauses
|
|
199
|
-
DateTime: e => `ISO(${e})`,
|
|
200
|
-
Timestamp: e => `ISO(${e})`,
|
|
199
|
+
DateTime: e => e === '?' ? e : `ISO(${e})`,
|
|
200
|
+
Timestamp: e => e === '?' ? e : `ISO(${e})`,
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
static OutputConverters = {
|
package/package.json
CHANGED