Skip to content

Support gb18030 2022 - #34

Merged
willhan123 merged 2 commits into
OpenTenBase:8.0.30from
arg123654789:gb18030_2022
Dec 29, 2025
Merged

Support gb18030 2022#34
willhan123 merged 2 commits into
OpenTenBase:8.0.30from
arg123654789:gb18030_2022

Conversation

@arg123654789

Copy link
Copy Markdown
Contributor

Description:

Support gb18030 2022 character set.

Main things:

  1. Add parameter txsql_gb18030_charset_standard to specify the original gb18030 character set to 2005 or 2022 standard.
  2. Implement gb18030 2022 character set standard. By An Rungong anrungong@unionpay.com

Description:
========
Support gb18030 2022 character set.

Main things:
========
1. Add parameter txsql_gb18030_charset_standard to specify the original gb18030 character set to 2005 or 2022 standard.
2. Implement gb18030 2022 character set standard.
By An Rungong <anrungong@unionpay.com>
Comment thread sql/sys_vars.cc
SESSION_ONLY(txsql_disable_sqlasyn), CMD_LINE(OPT_ARG), DEFAULT(false),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL), ON_UPDATE(NULL));

static bool check_txsql_gb18030_charset_standard(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加一个变量的好处是能兼容旧的字符集,
不过这里也引入了一个新的风险点, 我建完一个gb18030的表后, 修改这个参数,会导致数据混乱

@willhan123 willhan123 Dec 26, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我看社区其它时候升级字符集, 就是直接使用新标准了。没有通过参数控制,更简洁。

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ arg123654789
❌ willhan123
You have signed the CLA already but the status is still pending? Let us recheck it.

@willhan123
willhan123 merged commit 6b983e2 into OpenTenBase:8.0.30 Dec 29, 2025
1 of 2 checks passed
flyfox20 pushed a commit that referenced this pull request Jun 23, 2026
Description:
========
Support gb18030 2022 character set.

Main things:
========
1. Add parameter txsql_gb18030_charset_standard to specify the original gb18030 character set to 2005 or 2022 standard.
2. Implement gb18030 2022 character set standard.
By An Rungong <anrungong@unionpay.com>

Co-authored-by: willhan <526786050@qq.com>
flyfox20 pushed a commit that referenced this pull request Jun 24, 2026
Description:
========
Support gb18030 2022 character set.

Main things:
========
1. Add parameter txsql_gb18030_charset_standard to specify the original gb18030 character set to 2005 or 2022 standard.
2. Implement gb18030 2022 character set standard.
By An Rungong <anrungong@unionpay.com>

Co-authored-by: willhan <526786050@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants