Skip to content

Commit

Permalink
server: add comment for #7252 (#7549)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lingyu Song authored and jackysp committed Aug 30, 2018
1 parent 528d959 commit f915575
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/driver_tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ func convertColumnInfo(fld *ast.ResultField) (ci *ColumnInfo) {
// * Utf-8, the multiple is 3
// * utf8mb4, the multiple is 4
// So the large enough multiple is 4 in here.
// We used to check non-string types to avoid the truncation problem in some MySQL
// client such as Navicat. Now we only allow string type enter this branch.
ci.ColumnLength = ci.ColumnLength * mysql.MaxBytesOfCharacter
}

Expand Down

0 comments on commit f915575

Please sign in to comment.