Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Support multi byte characters #639

Merged
merged 1 commit into from
May 13, 2024
Merged

fix: Support multi byte characters #639

merged 1 commit into from
May 13, 2024

Conversation

BobdenOs
Copy link
Contributor

No description provided.

Copy link
Member

@patricebender patricebender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would omit the scope hana.

Since the PR title will be put into the @cap-js/hana changelog, it is not necessary to mention the database in the commit message. In 34aa381 I had to manually cleanup the changelog bc of this

@BobdenOs BobdenOs changed the title fix(hana): Support multi byte characters fix): Support multi byte characters May 13, 2024
@BobdenOs BobdenOs changed the title fix): Support multi byte characters fix: Support multi byte characters May 13, 2024
@BobdenOs BobdenOs merged commit 4cfa77f into main May 13, 2024
6 checks passed
@BobdenOs BobdenOs deleted the hana/big-chars branch May 13, 2024 11:40
@cap-bots cap-bots mentioned this pull request May 13, 2024
@@ -31,6 +31,9 @@ module.exports = [
{
char: 'A',
},
{
char: '대', // Ensure multi byte utf-8 characters also fit into a single character column

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure, that the character that is not utf-8 converted is still the same, when read from database?
Maybe a test can be added, that INSERTed value is the same then the afterwards selected value...

@@ -1028,6 +1028,7 @@ class HANAService extends SQLService {
Int64: () => `BIGINT`,
UUID: () => `NVARCHAR(36)`,
Boolean: () => `NVARCHAR(5)`,
String: e => `NVARCHAR(${(e.length || 5000) * 4})`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this enough for all use-cases? What is the max character that can occur...

johannes-vogel pushed a commit that referenced this pull request May 17, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>db-service: 1.9.1</summary>

##
[1.9.1](db-service-v1.9.0...db-service-v1.9.1)
(2024-05-16)


### Fixed

* dont mistake non-key access with foreign key
([#642](#642))
([2cd2349](2cd2349))
</details>

<details><summary>sqlite: 1.7.1</summary>

##
[1.7.1](sqlite-v1.7.0...sqlite-v1.7.1)
(2024-05-16)


### Fixed

* **deps:** update dependency better-sqlite3 to v10
([#636](#636))
([0cc60e7](0cc60e7))
</details>

<details><summary>hana: 0.4.0</summary>

##
[0.4.0](hana-v0.3.0...hana-v0.4.0)
(2024-05-16)


### Added

* Allow hex engine to be used
([#641](#641))
([bca0c01](bca0c01))


### Fixed

* Improve comparator check for combined and nested expressions
([#632](#632))
([8e1cb4b](8e1cb4b))
* Support multi byte characters
([#639](#639))
([4cfa77f](4cfa77f))


### Changed

* `@sap/hana-client` optional peer dependency
([#631](#631))
([89d7149](89d7149))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants