fix: mysql version function result (#2884)

Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
tison
2023-12-07 00:14:09 +08:00
committed by GitHub
parent cfe3a2c55e
commit ea80570cb1

View File

@@ -323,10 +323,7 @@ pub(crate) fn check(
// get GreptimeDB's version.
fn get_version() -> String {
format!(
"{}-greptime",
env::var("CARGO_PKG_VERSION").unwrap_or_else(|_| "unknown".to_string()),
)
format!("{}-greptime", env!("CARGO_PKG_VERSION"))
}
#[cfg(test)]
mod test {