Skip to content

Commit

Permalink
fix: replace mariadb's utf8mb4_uca1400_ai_ci with utf8mb4_0900_ai_ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang01 committed Dec 24, 2024
1 parent 8445d1f commit 324b46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/request_modifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var defaultRequestModifiers = []RequestModifier{
// which is not supported by go-mysql-server.
// This function replaces the collation with the MySQL default utf8mb4_0900_ai_ci.
func replaceMariaDBCollation(query string, _ *[]ResultModifier) string {
return strings.ReplaceAll(query, " utf8mb4_uca1400_ai_ci", " utf8mb4_0900_ai_ci")
return strings.ReplaceAll(query, "utf8mb4_uca1400_ai_ci", "utf8mb4_0900_ai_ci")
}

// applyRequestModifiers applies request modifiers to a query
Expand Down

0 comments on commit 324b46c

Please sign in to comment.