From 9530ee4e64ff29eee39e2646297ebf248853245f Mon Sep 17 00:00:00 2001 From: CAP Bot <122624402+cap-bots@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:51:32 +0200 Subject: [PATCH 1/2] chore: release main (#835) :robot: I have created a release *beep* *boop* ---
db-service: 1.14.0 ## [1.14.0](https://github.com/cap-js/cds-dbs/compare/db-service-v1.13.0...db-service-v1.14.0) (2024-10-15) ### Added * assoc-like calc elements after exists predicate ([#831](https://github.com/cap-js/cds-dbs/issues/831)) ([05f7d75](https://github.com/cap-js/cds-dbs/commit/05f7d75837495d58cc4f72ad628077bdebb0acf6)) ### Fixed * Improved behavioral consistency between the database services ([#837](https://github.com/cap-js/cds-dbs/issues/837)) ([b6f7187](https://github.com/cap-js/cds-dbs/commit/b6f718701e48dfb1c4c3d98ee016ec45930f8e7b)) * Treat assoc-like calculated elements as unmanaged assocs ([#830](https://github.com/cap-js/cds-dbs/issues/830)) ([cbe0df7](https://github.com/cap-js/cds-dbs/commit/cbe0df7a66fec0d421947767adc8621ed8bf236c))
sqlite: 1.7.4 ## [1.7.4](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.3...sqlite-v1.7.4) (2024-10-15) ### Fixed * Improved behavioral consistency between the database services ([#837](https://github.com/cap-js/cds-dbs/issues/837)) ([b6f7187](https://github.com/cap-js/cds-dbs/commit/b6f718701e48dfb1c4c3d98ee016ec45930f8e7b))
postgres: 1.10.1 ## [1.10.1](https://github.com/cap-js/cds-dbs/compare/postgres-v1.10.0...postgres-v1.10.1) (2024-10-15) ### Fixed * add cds schema for postgres build plugin ([#843](https://github.com/cap-js/cds-dbs/issues/843)) ([6306d5c](https://github.com/cap-js/cds-dbs/commit/6306d5ce50c071b38a3d9f61b0820ea713a782d8)) * Improved behavioral consistency between the database services ([#837](https://github.com/cap-js/cds-dbs/issues/837)) ([b6f7187](https://github.com/cap-js/cds-dbs/commit/b6f718701e48dfb1c4c3d98ee016ec45930f8e7b)) * null as default value ([#845](https://github.com/cap-js/cds-dbs/issues/845)) ([0041ec0](https://github.com/cap-js/cds-dbs/commit/0041ec0a26c29b30f91470d93611b29acd837216))
hana: 1.3.1 ## [1.3.1](https://github.com/cap-js/cds-dbs/compare/hana-v1.3.0...hana-v1.3.1) (2024-10-15) ### Fixed * combination of groupby and orderby ([#825](https://github.com/cap-js/cds-dbs/issues/825)) ([10e0534](https://github.com/cap-js/cds-dbs/commit/10e05343287faa937c8c4d559aabcf02abbd351e)) * Improved behavioral consistency between the database services ([#837](https://github.com/cap-js/cds-dbs/issues/837)) ([b6f7187](https://github.com/cap-js/cds-dbs/commit/b6f718701e48dfb1c4c3d98ee016ec45930f8e7b)) * list optimization for `Buffer` values ([#817](https://github.com/cap-js/cds-dbs/issues/817)) ([3e60de2](https://github.com/cap-js/cds-dbs/commit/3e60de229df535ac95279667ceaa519bb1a58c5d)) * null as default value ([#845](https://github.com/cap-js/cds-dbs/issues/845)) ([0041ec0](https://github.com/cap-js/cds-dbs/commit/0041ec0a26c29b30f91470d93611b29acd837216))
--- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Johannes Vogel --- .release-please-manifest.json | 8 ++++---- db-service/CHANGELOG.md | 13 +++++++++++++ db-service/package.json | 2 +- hana/CHANGELOG.md | 10 ++++++++++ hana/package.json | 2 +- postgres/CHANGELOG.md | 9 +++++++++ postgres/package.json | 2 +- sqlite/CHANGELOG.md | 8 ++++++++ sqlite/package.json | 2 +- 9 files changed, 48 insertions(+), 8 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ed9e449d6..99f47ce64 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,6 +1,6 @@ { - "db-service": "1.13.0", - "sqlite": "1.7.3", - "postgres": "1.10.0", - "hana": "1.3.0" + "db-service": "1.14.0", + "sqlite": "1.7.4", + "postgres": "1.10.1", + "hana": "1.3.1" } diff --git a/db-service/CHANGELOG.md b/db-service/CHANGELOG.md index 695a77061..e35863b08 100644 --- a/db-service/CHANGELOG.md +++ b/db-service/CHANGELOG.md @@ -4,6 +4,19 @@ - The format is based on [Keep a Changelog](http://keepachangelog.com/). - This project adheres to [Semantic Versioning](http://semver.org/). +## [1.14.0](https://github.com/cap-js/cds-dbs/compare/db-service-v1.13.0...db-service-v1.14.0) (2024-10-15) + + +### Added + +* assoc-like calc elements after exists predicate ([#831](https://github.com/cap-js/cds-dbs/issues/831)) ([05f7d75](https://github.com/cap-js/cds-dbs/commit/05f7d75837495d58cc4f72ad628077bdebb0acf6)) + + +### Fixed + +* Improved behavioral consistency between the database services ([#837](https://github.com/cap-js/cds-dbs/issues/837)) ([b6f7187](https://github.com/cap-js/cds-dbs/commit/b6f718701e48dfb1c4c3d98ee016ec45930f8e7b)) +* Treat assoc-like calculated elements as unmanaged assocs ([#830](https://github.com/cap-js/cds-dbs/issues/830)) ([cbe0df7](https://github.com/cap-js/cds-dbs/commit/cbe0df7a66fec0d421947767adc8621ed8bf236c)) + ## [1.13.0](https://github.com/cap-js/cds-dbs/compare/db-service-v1.12.1...db-service-v1.13.0) (2024-10-01) diff --git a/db-service/package.json b/db-service/package.json index 72d51e3b7..405f99a87 100644 --- a/db-service/package.json +++ b/db-service/package.json @@ -1,6 +1,6 @@ { "name": "@cap-js/db-service", - "version": "1.13.0", + "version": "1.14.0", "description": "CDS base database service", "homepage": "https://github.com/cap-js/cds-dbs/tree/main/db-service#cds-base-database-service", "repository": { diff --git a/hana/CHANGELOG.md b/hana/CHANGELOG.md index c930d99c5..08b25feef 100644 --- a/hana/CHANGELOG.md +++ b/hana/CHANGELOG.md @@ -4,6 +4,16 @@ - The format is based on [Keep a Changelog](http://keepachangelog.com/). - This project adheres to [Semantic Versioning](http://semver.org/). +## [1.3.1](https://github.com/cap-js/cds-dbs/compare/hana-v1.3.0...hana-v1.3.1) (2024-10-15) + + +### Fixed + +* combination of groupby and orderby ([#825](https://github.com/cap-js/cds-dbs/issues/825)) ([10e0534](https://github.com/cap-js/cds-dbs/commit/10e05343287faa937c8c4d559aabcf02abbd351e)) +* Improved behavioral consistency between the database services ([#837](https://github.com/cap-js/cds-dbs/issues/837)) ([b6f7187](https://github.com/cap-js/cds-dbs/commit/b6f718701e48dfb1c4c3d98ee016ec45930f8e7b)) +* list optimization for `Buffer` values ([#817](https://github.com/cap-js/cds-dbs/issues/817)) ([3e60de2](https://github.com/cap-js/cds-dbs/commit/3e60de229df535ac95279667ceaa519bb1a58c5d)) +* null as default value ([#845](https://github.com/cap-js/cds-dbs/issues/845)) ([0041ec0](https://github.com/cap-js/cds-dbs/commit/0041ec0a26c29b30f91470d93611b29acd837216)) + ## [1.3.0](https://github.com/cap-js/cds-dbs/compare/hana-v1.2.0...hana-v1.3.0) (2024-10-01) diff --git a/hana/package.json b/hana/package.json index 3455fb368..aa26c251e 100644 --- a/hana/package.json +++ b/hana/package.json @@ -1,6 +1,6 @@ { "name": "@cap-js/hana", - "version": "1.3.0", + "version": "1.3.1", "description": "CDS database service for SAP HANA", "homepage": "https://cap.cloud.sap/", "keywords": [ diff --git a/postgres/CHANGELOG.md b/postgres/CHANGELOG.md index 3978dac62..8c85f334a 100644 --- a/postgres/CHANGELOG.md +++ b/postgres/CHANGELOG.md @@ -4,6 +4,15 @@ - The format is based on [Keep a Changelog](http://keepachangelog.com/). - This project adheres to [Semantic Versioning](http://semver.org/). +## [1.10.1](https://github.com/cap-js/cds-dbs/compare/postgres-v1.10.0...postgres-v1.10.1) (2024-10-15) + + +### Fixed + +* add cds schema for postgres build plugin ([#843](https://github.com/cap-js/cds-dbs/issues/843)) ([6306d5c](https://github.com/cap-js/cds-dbs/commit/6306d5ce50c071b38a3d9f61b0820ea713a782d8)) +* Improved behavioral consistency between the database services ([#837](https://github.com/cap-js/cds-dbs/issues/837)) ([b6f7187](https://github.com/cap-js/cds-dbs/commit/b6f718701e48dfb1c4c3d98ee016ec45930f8e7b)) +* null as default value ([#845](https://github.com/cap-js/cds-dbs/issues/845)) ([0041ec0](https://github.com/cap-js/cds-dbs/commit/0041ec0a26c29b30f91470d93611b29acd837216)) + ## [1.10.0](https://github.com/cap-js/cds-dbs/compare/postgres-v1.9.1...postgres-v1.10.0) (2024-07-25) diff --git a/postgres/package.json b/postgres/package.json index b582d7d24..71606b679 100644 --- a/postgres/package.json +++ b/postgres/package.json @@ -1,6 +1,6 @@ { "name": "@cap-js/postgres", - "version": "1.10.0", + "version": "1.10.1", "description": "CDS database service for Postgres", "homepage": "https://github.com/cap-js/cds-dbs/tree/main/postgres#cds-database-service-for-postgres", "repository": { diff --git a/sqlite/CHANGELOG.md b/sqlite/CHANGELOG.md index 15d1ced5c..46f99d890 100644 --- a/sqlite/CHANGELOG.md +++ b/sqlite/CHANGELOG.md @@ -4,6 +4,14 @@ - The format is based on [Keep a Changelog](http://keepachangelog.com/). - This project adheres to [Semantic Versioning](http://semver.org/). +## [1.7.4](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.3...sqlite-v1.7.4) (2024-10-15) + + +### Fixed + +* enforce db file to be existent before server start ([#742](https://github.com/cap-js/cds-dbs/issues/742)) ([64a9018](https://github.com/cap-js/cds-dbs/commit/64a90186aaf44b3426df2e9adbf9a1b4cf2f92b7)) +* Improved behavioral consistency between the database services ([#837](https://github.com/cap-js/cds-dbs/issues/837)) ([b6f7187](https://github.com/cap-js/cds-dbs/commit/b6f718701e48dfb1c4c3d98ee016ec45930f8e7b)) + ## [1.7.3](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.7.2...sqlite-v1.7.3) (2024-07-09) diff --git a/sqlite/package.json b/sqlite/package.json index 261a51352..8702e29f4 100644 --- a/sqlite/package.json +++ b/sqlite/package.json @@ -1,6 +1,6 @@ { "name": "@cap-js/sqlite", - "version": "1.7.3", + "version": "1.7.4", "description": "CDS database service for SQLite", "homepage": "https://github.com/cap-js/cds-dbs/tree/main/sqlite#cds-database-service-for-sqlite", "repository": { From ec75b509ef39307f08b6e2fc8bb596423efe9d3a Mon Sep 17 00:00:00 2001 From: Bob den Os <108393871+BobdenOs@users.noreply.github.com> Date: Wed, 16 Oct 2024 09:59:16 +0200 Subject: [PATCH 2/2] fix: allocate a new Buffer for each chunk of a Blob stream when using hana-client (#846) --- hana/lib/drivers/hana-client.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hana/lib/drivers/hana-client.js b/hana/lib/drivers/hana-client.js index 0a7e3408e..b6b3b7c9c 100644 --- a/hana/lib/drivers/hana-client.js +++ b/hana/lib/drivers/hana-client.js @@ -325,7 +325,7 @@ async function* rsIterator(rs, one) { yield buffer } -async function* streamBlob(rs, rowIndex = -1, columnIndex, binaryBuffer = Buffer.allocUnsafe(1 << 16)) { +async function* streamBlob(rs, rowIndex = -1, columnIndex, binaryBuffer) { const promChain = { resolve: () => { }, reject: () => { } @@ -369,14 +369,14 @@ async function* streamBlob(rs, rowIndex = -1, columnIndex, binaryBuffer = Buffer let blobPosition = 0 while (true) { - // REVISIT: Ensure that the data read is divisible by 3 as that allows for base64 encoding - const read = await getData(columnIndex, blobPosition, binaryBuffer, 0, binaryBuffer.byteLength) + const buffer = binaryBuffer || Buffer.allocUnsafe(1 << 16) + const read = await getData(columnIndex, blobPosition, buffer, 0, buffer.byteLength) blobPosition += read - if (read < binaryBuffer.byteLength) { - yield binaryBuffer.subarray(0, read) + if (read < buffer.byteLength) { + yield buffer.subarray(0, read) break } - yield binaryBuffer + yield buffer } } catch (e) { promChain.reject(e)