Skip to content

Commit

Permalink
chore: make mysql server version changable
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelScofield committed Aug 8, 2024
1 parent 4c1a3f2 commit 1f22758
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/servers/src/mysql/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ impl MysqlInstanceShim {
impl<W: AsyncWrite + Send + Sync + Unpin> AsyncMysqlShim<W> for MysqlInstanceShim {
type Error = error::Error;

fn version(&self) -> String {
std::env::var("GREPTIMEDB_MYSQL_SERVER_VERSION").unwrap_or_else(|_| "8.4.2".to_string())
}

fn salt(&self) -> [u8; 20] {
self.salt
}
Expand Down

0 comments on commit 1f22758

Please sign in to comment.