mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-16 13:00:40 +00:00
chore: make mysql server version changable (#4531)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user