Commit Graph

15 Commits

Author SHA1 Message Date
5f0585415b expression: forbidden illegal mix collate (#16277) 2020-04-15 14:41:27 +08:00
82829e1fa5 *: consolidate some settings related to the collation (#15553) 2020-03-23 17:38:31 +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
80d577a143 expression: update builtinLike to be collation-aware (#15049) 2020-03-12 16:08:32 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +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
eb12799152 *: Collation should be set accordingly when setting string datum (#14757) 2020-02-20 23:01:53 +08:00
d0e6aed1f1 executor: consider collations when calculating hash values in HashJoin (#14836) 2020-02-19 19:49:28 +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