mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 21:32:58 +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 {
|
impl<W: AsyncWrite + Send + Sync + Unpin> AsyncMysqlShim<W> for MysqlInstanceShim {
|
||||||
type Error = error::Error;
|
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] {
|
fn salt(&self) -> [u8; 20] {
|
||||||
self.salt
|
self.salt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user