Skip to content

Commit

Permalink
Merge pull request #562 from hanchuanchuan/fix-utf8mb3-error
Browse files Browse the repository at this point in the history
fix: 修复MySQL v8.0当database字符集为utf8mb3时审核失败的问题(#531)
  • Loading branch information
hanchuanchuan authored Mar 20, 2023
2 parents 25739df + d6db07a commit 2f47aef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion session/session_inception.go
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,11 @@ func (s *session) mysqlServerVersion() {
case "gtid_mode":
s.gtidMode = value
case "character_set_database":
s.databaseCharset = value
if value == "utf8mb3" {
s.databaseCharset = "utf8"
} else {
s.databaseCharset = value
}
}
}

Expand Down

0 comments on commit 2f47aef

Please sign in to comment.