fix: update MySql connection options to include pipes as concat and timezone settings
This commit is contained in:
parent
c6f9bb89ec
commit
a025649f89
|
|
@ -155,7 +155,9 @@ pub async fn connect_bare(url: &str) -> Result<MySqlPool, String> {
|
|||
.map_err(|e: sqlx::Error| format!("Invalid MySQL URL: {e}"))?;
|
||||
let options = options
|
||||
.no_engine_substitution(false)
|
||||
.set_names(false);
|
||||
.set_names(false)
|
||||
.pipes_as_concat(false)
|
||||
.timezone(None);
|
||||
MySqlPoolOptions::new()
|
||||
.max_connections(5)
|
||||
.acquire_timeout(Duration::from_secs(10))
|
||||
|
|
|
|||
Loading…
Reference in New Issue