@cap-js/sqlite 1.7.6 → 1.7.7

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
@@ -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.7](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.6...sqlite-v1.7.7) (2024-11-14)
8
+
9
+
10
+ ### Fixed
11
+
12
+ * boolean for sql_simple_queries ([#886](https://github.com/cap-js/cds-dbs/issues/886)) ([d8139fa](https://github.com/cap-js/cds-dbs/commit/d8139fa2ea0cb6bebf966ac5b781b2f8f7c67207))
13
+
7
14
  ## [1.7.6](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.5...sqlite-v1.7.6) (2024-10-30)
8
15
 
9
16
 
@@ -208,7 +208,10 @@ class SQLiteService extends SQLService {
208
208
  struct: expr => `${expr}->'$'`,
209
209
  array: expr => `${expr}->'$'`,
210
210
  // SQLite has no booleans so we need to convert 0 and 1
211
- boolean: expr => `CASE ${expr} when 1 then 'true' when 0 then 'false' END ->'$'`,
211
+ boolean:
212
+ cds.env.features.sql_simple_queries === 2
213
+ ? undefined
214
+ : expr => `CASE ${expr} when 1 then 'true' when 0 then 'false' END ->'$'`,
212
215
  // DateTimes are returned without ms added by InputConverters
213
216
  DateTime: e => `substr(${e},0,20)||'Z'`,
214
217
  // Timestamps are returned with ms, as written by InputConverters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/sqlite",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "CDS database service for SQLite",
5
5
  "homepage": "https://github.com/cap-js/cds-dbs/tree/main/sqlite#cds-database-service-for-sqlite",
6
6
  "repository": {