Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Service Connector}: fix postgresql connection string format #7758

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/serviceconnector-passwordless/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Release History
===============
2.0.4
++++++
* Fix PostgreSQL connection string format

2.0.3
++++++
* Prompt confirmation when update PostgreSQL server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ def get_connection_string(self):
'az account get-access-token --resource-type oss-rdbms').get('accessToken')

# extension functions require the extension to be available, which is the case for postgres (default) database.
conn_string = "host={} user={} dbname=postgres password={} sslmode=require".format(
conn_string = "host={} user='{}' dbname=postgres password={} sslmode=require".format(
xfz11 marked this conversation as resolved.
Show resolved Hide resolved
self.host, self.admin_username, password)
return conn_string

Expand Down Expand Up @@ -926,7 +926,7 @@ def get_connection_string(self):
'az account get-access-token --resource-type oss-rdbms').get('accessToken')

# extension functions require the extension to be available, which is the case for postgres (default) database.
conn_string = "host={} user={} dbname={} password={} sslmode=require".format(
conn_string = "host={} user='{}' dbname='{}' password={} sslmode=require".format(
self.host, self.admin_username + '@' + self.db_server, self.dbname, password)
return conn_string

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# --------------------------------------------------------------------------------------------


VERSION = '2.0.3'
VERSION = '2.0.4'
NAME = 'serviceconnector-passwordless'
Loading