Skip to content

Commit

Permalink
fix: 修复MySQL v8.0当database字符集为utf8mb3时审核失败的问题(#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchuanchuan committed Mar 20, 2023
1 parent 25739df commit d6db07a
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 d6db07a

Please sign in to comment.