-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sql, toc: refine character set and collation document #2884
sql, toc: refine character set and collation document #2884
Conversation
|
||
在 4.0 版本之前,TiDB 中可以指定大部分 MySQl 中的 Collation,并把这些 Collation 按照默认 Collation 处理,即以编码字节序为字符定序。和 MySQL 不同的是,TiDB 在比较字符前按照 Collation 的 `PADDING` 属性将字符补齐空格,因此会造成以下的行为区别: | ||
在 4.0 版本之前,TiDB 中可以指定大部分 MySQl 中的排序规则,并把这些排序规则按照默认排序规则处理,即以编码字节序为字符定序。和 MySQL 不同的是,TiDB 在比较字符前按照 排序规则 的 `PADDING` 属性将字符补齐空格,因此会造成以下的行为区别: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在 4.0 版本之前,TiDB 中可以指定大部分 MySQl 中的排序规则,并把这些排序规则按照默认排序规则处理,即以编码字节序为字符定序。和 MySQL 不同的是,TiDB 在比较字符前按照 排序规则 的 `PADDING` 属性将字符补齐空格,因此会造成以下的行为区别: | |
在 4.0 版本之前,TiDB 中可以指定大部分 MySQL 中的排序规则,并把这些排序规则按照默认排序规则处理,即以编码字节序为字符定序。和 MySQL 不同的是,TiDB 在比较字符前按照排序规则的 `PADDING` 属性将字符补齐空格,因此会造成以下的行为区别: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里有误,应该是 “TiDB 在比较字符前按照排序规则的 PADDING
属性将字符末尾的空格删除”, 英文版也需要更改。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in #2350.
Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* sql, toc: refine character set and collation document * address comments * address comments Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com> * Apply suggestions from code review Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com> Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com> Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
cherry pick to release-4.0 in PR #2928 |
* sql, toc: refine character set and collation document * address comments * address comments Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com> * Apply suggestions from code review Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com> Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com> Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com> Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
This PR‘s commits need to be manually cherry-picked to release-3.1, release-3.0, and release-2.1. @TomShawn will help open the PRs. |
* sql, toc: refine character set and collation document * address comments * address comments Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com> * Apply suggestions from code review Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com> Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com> Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
What is changed, added or deleted? (Required)
排序规则
andcollation
-->排序规则
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?