Commit Graph

20 Commits

Author SHA1 Message Date
cfbe70846a config: remove new charset config (#31291)
close pingcap/tidb#31236
2022-01-06 13:26:37 +08:00
6e75367ad0 collation: make gbk default collation to gbk_bin if new collation is not enabled (#31208)
close pingcap/tidb#31221
2022-01-04 15:48:35 +08:00
e08df49a0d collation: support gbk_chinese_ci collation and make it as default collation for gbk (#28645) 2021-10-25 11:34:48 +08:00
6d58a823a2 collation: add gbk_bin collation support (#28028) 2021-10-13 15:39:28 +08:00
b47d772d47 charset: add a config field to control charset feature (#27288) 2021-08-20 23:46:01 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
b872b05801 util/collate: migrate to testify (#26535) 2021-07-27 17:42:16 +08:00
f1c464a86a collation: add utf8mb4_zh_pinyin_tidb_as_cs collation interface (#20504) 2020-11-03 11:35:39 +08:00
14a31b5c0e charset: improve performance of general_ci Compare and Key function (#19558) 2020-10-29 10:25:32 +08:00
ba60cf5a69 charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation (#18776) 2020-08-27 23:20:48 +08:00
b642045ff2 charset: add utf8_unicode_ci and utf8mb4_unicode_ci interface (#18678)
* add unicode_ci interface

* fix build

* fix check

* fix test

* change comments

* add test

* Update util/collate/unicode_ci.go

Co-authored-by: djshow832 <zhangming@pingcap.com>

Co-authored-by: djshow832 <zhangming@pingcap.com>
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: djshow832 <873581766@qq.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-24 17:16:03 +08:00
5e8706a1f6 util/collate: remove CollatorOption (#15472)
`CollatorOption` was used to specify the `PadLen` which aims to support
"PADDING" attribute of the collations. But now it is not needed anymore,
since TiDB actually implements "PADDING" by removing trailing spaces.
2020-03-19 15:16:29 +08:00
332cef97f5 *: support index encode/decode for new collation (#14876) 2020-02-27 11:33:33 +08:00
0daca24dc3 expression: set collation id to negative in tipb if new collations are enabled (#14883) 2020-02-26 10:07:15 +08:00
143b3bd728 util: change padding of collation to truncateTailSpace (#14917) 2020-02-25 16:15:22 +08:00
f275ac302a util: fix a padding error for general_ci (#14906) 2020-02-23 22:46:59 +08:00
1344d6ddd9 util: support padding for collation (#14824) 2020-02-19 12:59:29 +08:00
713099c1ad *: add a configuration entry to control if new collations are enabled (#14734)
Configuration entry `new_collations_enabled_on_first_bootstrap` is
added, which determines if the new collations can be enabled when a
TiDB cluster is initialized for the first time.
2020-02-17 15:56:24 +08:00
aef4c05786 util: implement collation interface for utf8_general_ci and utf8mb4_general_ci (#14725)
Implement collation interface for utf8_general_ci and utf8mb4_general_ci.
Add a function GetCollatorByID.
2020-02-17 11:00:26 +08:00
6bae385ce0 util: add collation interface (#14698) 2020-02-11 11:18:04 +08:00