Skip to content

Commit

Permalink
Typo in connection string in dbutils.py (#263)
Browse files Browse the repository at this point in the history
* change to sslvalidatecertificate instead of validatecertificate (#260)

* replace ? with & in db connect string
  • Loading branch information
SantanM authored Aug 2, 2024
1 parent b78eeb8 commit 9fc7da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/alp-dataflow-gen/pysrc/alpconnection/dbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def GetDBConnection(database_code: str, user_type: str):
encrypt = conn_details["encrypt"]
validateCertificate = conn_details["validateCertificate"]
db = database_name + \
f"?encrypt={encrypt}?sslValidateCertificate={validateCertificate}"
f"?encrypt={encrypt}&sslValidateCertificate={validateCertificate}"
elif conn_details['dialect'] == DatabaseDialects.POSTGRES:
dialect_driver = "postgresql+psycopg2"
db = database_name
Expand Down

0 comments on commit 9fc7da0

Please sign in to comment.