We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ad32da commit 94595f4Copy full SHA for 94595f4
mara_db/dbs.py
@@ -163,7 +163,7 @@ def sqlalchemy_url(self):
163
return f'mssql+pyodbc://{self.user}:{urllib.parse.quote(self.password)}@{self.host}:{port}/{self.database}?driver={driver}'
164
165
if importlib.util.find_spec("pymssql"):
166
- return f'mssql+pymssql://{self.db.user}:{urllib.parse.quote(self.db.password)}@{self.db.host}:{port}/{self.db.database}'
+ return f'mssql+pymssql://{self.user}:{urllib.parse.quote(self.password)}@{self.host}:{port}/{self.database}'
167
168
raise ValueError('You need either python module pyodbc or pymssql to use sqlalchemy with SQLServerDB.')
169
0 commit comments