Skip to content

Commit e97c549

Browse files
authored
Update thread_postgresql.py
Changed hostaddr to host in the connection string
1 parent 5ec5a15 commit e97c549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

threadcomponents/database/thread_postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def get_connection_string(host, port, database, user, password):
1111
"""Function to get the connection-string for the database."""
12-
return f"hostaddr='{host or ''}' port='{port or ''}' dbname='{database}' user='{user}' password='{password}'"
12+
return f"host='{host or ''}' port='{port or ''}' dbname='{database}' user='{user}' password='{password}'"
1313

1414

1515
def get_db_info():

0 commit comments

Comments
 (0)