From 7bc518371bd1270a0740a8fb89d736be2acbb137 Mon Sep 17 00:00:00 2001 From: Luis Fernando Batels Date: Wed, 28 Aug 2024 05:56:34 -0300 Subject: [PATCH] Server engine 5 Added server engine 5.0.0 support --- src/utils.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 154457b..cd3b2c8 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -20,6 +20,7 @@ pub enum EngineVersion { V2 = 2, V3 = 3, V4 = 4, + V5 = 5, } impl SystemInfos for T @@ -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), @@ -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(()) }