Merged
Conversation
agoerler
reviewed
Dec 6, 2024
| [H2](https://www.h2database.com/html/main.html) is the recommended in-memory databases for local development and testing with CAP Java. There's no production support for H2 from CAP and there are the following limitations: | ||
|
|
||
| 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). |
Contributor
There was a problem hiding this comment.
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
Contributor
Author
There was a problem hiding this comment.
Something like
---
spring:
config.activate.on-profile: local
datasource:
url: jdbc:h2:./test;COLLATION='ENGLISH'or add SET COLLATION ENGLISH to the schema.sql
Contributor
There was a problem hiding this comment.
or add SET COLLATION ENGLISH to the schema.sql
This could be done by the CDS Compiler :-). Might be a quick win.
smahati
reviewed
Dec 11, 2024
smahati
approved these changes
Dec 11, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.