mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix(database): percent-encode spaces in Postgres connection URI (#9685)
Co-authored-by: Sayak Bhattacharya <sayak.b@Sayak-Bhattacharya-G092THXJ34.local>
This commit is contained in:
committed by
GitHub
parent
6173586eeb
commit
dbc113fe81
@ -309,7 +309,7 @@ pub trait DbConnectionParams {
|
||||
fn get_dbname(&self) -> &str;
|
||||
fn get_database_url(&self, schema: &str) -> String {
|
||||
format!(
|
||||
"postgres://{}:{}@{}:{}/{}?application_name={}&options=-c search_path%3D{}",
|
||||
"postgres://{}:{}@{}:{}/{}?application_name={}&options=-c%20search_path%3D{}",
|
||||
self.get_username(),
|
||||
self.get_password().peek(),
|
||||
self.get_host(),
|
||||
|
||||
Reference in New Issue
Block a user