Skip to content

Commit

Permalink
Server engine 5
Browse files Browse the repository at this point in the history
Added server engine 5.0.0 support
  • Loading branch information
fernandobatels committed Aug 28, 2024
1 parent 942c955 commit 7bc5183
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub enum EngineVersion {
V2 = 2,
V3 = 3,
V4 = 4,
V5 = 5,
}

impl<T> SystemInfos for T
Expand All @@ -45,6 +46,7 @@ where

if let Some((version,)) = row {
return match &version.get(0..2) {
Some("5.") => Ok(EngineVersion::V5),
Some("4.") => Ok(EngineVersion::V4),
Some("3.") => Ok(EngineVersion::V3),
Some("2.") => Ok(EngineVersion::V2),
Expand All @@ -69,7 +71,7 @@ mk_tests_default! {
let version = conn.server_engine()?;

// Our current CI versions..
assert!([EngineVersion::V2, EngineVersion::V3, EngineVersion::V4].contains(&version));
assert!([EngineVersion::V2, EngineVersion::V3, EngineVersion::V4, EngineVersion::V5].contains(&version));

Ok(())
}
Expand Down

0 comments on commit 7bc5183

Please sign in to comment.