-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
There was a problem hiding this 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
@@ -31,6 +31,9 @@ module.exports = [ | |||
{ | |||
char: 'A', | |||
}, | |||
{ | |||
char: '대', // Ensure multi byte utf-8 characters also fit into a single character column |
There was a problem hiding this comment.
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})`, |
There was a problem hiding this comment.
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...
🤖 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).
No description provided.