From 235b866f46fd4e6444c0c84eee4008ea8366bc1e Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Fri, 15 Oct 2021 14:37:27 +0800 Subject: [PATCH] infoschema: set default TABLE_COLLATION mysql.DefaultCollationName (#28839) --- infoschema/tables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infoschema/tables.go b/infoschema/tables.go index 8513c48bcb..385c13575c 100644 --- a/infoschema/tables.go +++ b/infoschema/tables.go @@ -381,7 +381,7 @@ var tablesCols = []columnInfo{ {name: "CREATE_TIME", tp: mysql.TypeDatetime, size: 19}, {name: "UPDATE_TIME", tp: mysql.TypeDatetime, size: 19}, {name: "CHECK_TIME", tp: mysql.TypeDatetime, size: 19}, - {name: "TABLE_COLLATION", tp: mysql.TypeVarchar, size: 32, deflt: "utf8_bin"}, + {name: "TABLE_COLLATION", tp: mysql.TypeVarchar, size: 32, deflt: mysql.DefaultCollationName}, {name: "CHECKSUM", tp: mysql.TypeLonglong, size: 21}, {name: "CREATE_OPTIONS", tp: mysql.TypeVarchar, size: 255}, {name: "TABLE_COMMENT", tp: mysql.TypeVarchar, size: 2048},