Support gb18030 2022 - #34
Merged
Merged
Conversation
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>
willhan123
reviewed
Dec 26, 2025
| 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( |
Collaborator
There was a problem hiding this comment.
增加一个变量的好处是能兼容旧的字符集,
不过这里也引入了一个新的风险点, 我建完一个gb18030的表后, 修改这个参数,会导致数据混乱
Collaborator
There was a problem hiding this comment.
我看社区其它时候升级字符集, 就是直接使用新标准了。没有通过参数控制,更简洁。
|
|
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>
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.
Description:
Support gb18030 2022 character set.
Main things: