filer.store.mysql: Use utf8mb4 instead of 3 byte UTF8 (#4094)

This commit is contained in:
CommanderRoot
2023-01-01 14:07:53 +01:00
committed by GitHub
parent c2280e94cf
commit c7c9d22f37
5 changed files with 29 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ import (
)
const (
CONNECTION_URL_PATTERN = "%s:%s@tcp(%s:%d)/%s?charset=utf8"
CONNECTION_URL_PATTERN = "%s:%s@tcp(%s:%d)/%s?collation=utf8mb4_bin"
)
func init() {

View File

@@ -15,7 +15,7 @@ import (
)
const (
CONNECTION_URL_PATTERN = "%s:%s@tcp(%s:%d)/%s?charset=utf8"
CONNECTION_URL_PATTERN = "%s:%s@tcp(%s:%d)/%s?collation=utf8mb4_bin"
)
var _ filer.BucketAware = (*MysqlStore2)(nil)