fix: update MySql connection options to include pipes as concat and timezone settings

This commit is contained in:
t8y2
2026-05-02 17:36:00 +08:00
parent c6f9bb89ec
commit a025649f89
+3 -1
View File
@@ -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))