Skip to content

Conversation

hanchuanchuan
Copy link
Owner

根据MySQL参数 innodb_large_prefix 是否开启来限制单列是否允许超过767字节。

索引的所有列总长度始终不允许超过3072字节。
(未判断InnoDB页大小以及表属性DYNAMIC和COMPRESSED等)

@codecov
Copy link

codecov bot commented Mar 23, 2020

Codecov Report

Merging #176 into master will decrease coverage by 0.0095%.
The diff coverage is 0.0000%.

@@               Coverage Diff                @@
##             master       #176        +/-   ##
================================================
- Coverage   58.7335%   58.7240%   -0.0096%     
================================================
  Files           371        371                
  Lines         83506      83511         +5     
================================================
- Hits          49046      49041         -5     
- Misses        30195      30205        +10     
  Partials       4265       4265                

@hanchuanchuan hanchuanchuan merged commit ce15c43 into master Mar 24, 2020
@hanchuanchuan hanchuanchuan deleted the patch-index-length-limit-767 branch March 24, 2020 01:36
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.

1 participant