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

Use ShardingSphereIdentifier to handle case-sensitive or case-insensitive for different databases #33777

Open
terrymanu opened this issue Nov 24, 2024 · 0 comments

Comments

@terrymanu
Copy link
Member

terrymanu commented Nov 24, 2024

The key of String on CaseInsensitiveMap can not handle identifier with quote and different of database dialects.
It is better to create a new class to replace all CaseInsensitiveMap in metadata module.

The tasks are:

  1. Create ShardingSphereIdentifier to instead of all String key of CaseInsensitiveMap/HashMap in metadata module;
  2. Create DatabaseDialectIdentifierHandler to process different database dialects.
  3. Use ShardingSphereIdentifier on ShardingSphereTable/ShardingSphereSchema/ShardingSphereDatabase etc.
  4. Use ShardingSphereIdentifier on rules.
  5. Add more implementations for DatabaseDialectIdentifierHandler.
@terrymanu terrymanu self-assigned this Nov 24, 2024
@terrymanu terrymanu added this to the 5.5.2 milestone Nov 24, 2024
@terrymanu terrymanu changed the title Use ShardingSphereMetaDataIdentifier to handle case-sensitive or case-insensitive for different databases Use ShardingSphereIdentifier to handle case-sensitive or case-insensitive for different databases Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant