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

Enhance mysql charset and collation support #911

Open
jd-zhang opened this issue Jul 11, 2022 · 8 comments
Open

Enhance mysql charset and collation support #911

jd-zhang opened this issue Jul 11, 2022 · 8 comments
Labels
enhancement New feature or request @high kunlun

Comments

@jd-zhang
Copy link
Contributor

*Issue migrated from trac ticket # 893 www.kunlunbase.com *

component: computing nodes | priority: major

2022-07-11 14:30:50: zhaowei@zettadb.com created the issue


  1. Store charset and collation mapping between PostgreSQL and MySQL in system metadata tables, so that such mapping can be extended and updated as needed at any time.

Such mappings used to be hard coded.

Now they are in pg_mysql_charset_mapping and pg_mysql_collation_mapping tables--- pg_mysql_charset_mapping maps pg charset to mysql charset, and pg_mysql_collation_mapping maps mysql charset and/or collation names to a pg charset&collation pair.

  1. support mysql SET NAMES grammar
    SET NAMES {charset_name [COLLATE collation_name] | DEFAULT }
    and make sure mysql charset and collation names here can be mapped to pg charset and collations.
  2. make sure collation references in DML stmts can refer to both mysql collations and pg collations, and mysql charset and collations are mapped to pg charset and collations.
@jd-zhang
Copy link
Contributor Author

2022-07-11 16:46:12: smith changed owner from smith to david

@jd-zhang
Copy link
Contributor Author

2022-07-11 16:46:12: smith changed status from new to assigned

@jd-zhang
Copy link
Contributor Author

2022-07-12 11:08:13: zhaowei@zettadb.com edited the issue description

@jd-zhang
Copy link
Contributor Author

2022-07-12 11:08:13: zhaowei@zettadb.com changed owner from david to kunlun

@jd-zhang
Copy link
Contributor Author

2022-07-12 11:08:13: zhaowei@zettadb.com changed status from assigned to accepted

@jd-zhang
Copy link
Contributor Author

2022-07-12 11:08:13: zhaowei@zettadb.com changed title from Store charset and collation mapping between PostgreSQL and MySQL in system metadata tables to Enhance mysql charset and collation support

@jd-zhang
Copy link
Contributor Author

2022-07-12 11:08:13: zhaowei@zettadb.com changed type from task to enhancement

@jd-zhang
Copy link
Contributor Author

2022-07-12 21:28:04: zhaowei@zettadb.com edited the issue description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request @high kunlun
Projects
None yet
Development

No branches or pull requests

1 participant