Skip to content

Commit

Permalink
fix: mysql version function result (#2884)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Dec 6, 2023
1 parent cfe3a2c commit ea80570
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/servers/src/mysql/federated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ea80570

Please sign in to comment.