Skip to content

Commit

Permalink
feature(version): 增加mysql和mariadb版本映射
Browse files Browse the repository at this point in the history
  • Loading branch information
chaorongzhi committed Sep 11, 2024
1 parent 94791bb commit 7164df8
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ public static MySqlVersion parse(String version) {
if (version.startsWith("5.5")) {
return V_5_5;
}
if (version.startsWith("5.6")) {
if (version.startsWith("5.6") || version.startsWith("10.1")) {
return V_5_6;
}
if (version.startsWith("5.7")) {
if (version.startsWith("5.7") || version.startsWith("10.2")) {
return V_5_7;
}
if (version.startsWith("8.0")) {
if (version.startsWith("8.0")
|| version.startsWith("10.3")
|| version.startsWith("10.4")
|| version.startsWith("10.5")) {
return V_8;
}
if (version.startsWith("8.4")) {
Expand Down

0 comments on commit 7164df8

Please sign in to comment.