diff --git a/dialect/mysqldialect/dialect.go b/dialect/mysqldialect/dialect.go index 9e9032e2c..b28621a6f 100644 --- a/dialect/mysqldialect/dialect.go +++ b/dialect/mysqldialect/dialect.go @@ -66,7 +66,10 @@ func (d *Dialect) Init(db *sql.DB) { version = semver.MajorMinor("v" + cleanupVersion(version)) if semver.Compare(version, "v8.0") >= 0 { - d.features |= feature.CTE | feature.WithValues | feature.DeleteTableAlias + d.features |= feature.CTE | feature.WithValues + } + if semver.Compare(version, "v8.0.16") >= 0 { + d.features |= feature.DeleteTableAlias } }