Skip to content

Commit

Permalink
fix: compare full MySQL version
Browse files Browse the repository at this point in the history
  • Loading branch information
jsclayton committed May 3, 2023
1 parent 77a600b commit 096fabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialect/mysqldialect/dialect.go
Expand Up @@ -64,7 +64,7 @@ func (d *Dialect) Init(db *sql.DB) {
return
}

version = semver.MajorMinor("v" + cleanupVersion(version))
version = "v" + cleanupVersion(version)
if semver.Compare(version, "v8.0") >= 0 {
d.features |= feature.CTE | feature.WithValues
}
Expand Down

0 comments on commit 096fabe

Please sign in to comment.