From d20bc126fc8665542af6b69073adc18405c1c002 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Mon, 12 Jul 2021 12:14:08 +0900 Subject: [PATCH] Fix test for MySQL 8.0 "utf8" is now alias of "utf8mb3" in MySQL 8.0. --- driver_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver_test.go b/driver_test.go index 3ae379b26..a227206ee 100644 --- a/driver_test.go +++ b/driver_test.go @@ -1450,11 +1450,11 @@ func TestCharset(t *testing.T) { mustSetCharset("charset=ascii", "ascii") // when the first charset is invalid, use the second - mustSetCharset("charset=none,utf8", "utf8") + mustSetCharset("charset=none,utf8mb4", "utf8mb4") // when the first charset is valid, use it mustSetCharset("charset=ascii,utf8", "ascii") - mustSetCharset("charset=utf8,ascii", "utf8") + mustSetCharset("charset=utf8mb4,ascii", "utf8mb4") } func TestFailingCharset(t *testing.T) {