-
Notifications
You must be signed in to change notification settings - Fork 104
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
H2: Set collation #1502
base: main
Are you sure you want to change the base?
H2: Set collation #1502
Conversation
|
||
1. H2 only supports database level collation. Lexicographical sorting on character-based columns isn't supported. | ||
1. H2 only supports database-level collation. The default sort order is by ASCII-code, for dictionary order set a [collation](https://www.h2database.com/html/commands.html#set_collation). |
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 think we should document in the H2 config section https://pages.github.tools.sap/cap/docs/java/cqn-services/persistence-services#h2
how to configure this URL in the application.json
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.
Something like
---
spring:
config.activate.on-profile: local
datasource:
url: jdbc:h2:./test;COLLATION='ENGLISH'
or add SET COLLATION ENGLISH
to the schema.sql
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.
or add SET COLLATION ENGLISH to the schema.sql
This could be done by the CDS Compiler :-). Might be a quick win.
No description provided.