Skip to content

Commit 94595f4

Browse files
committed
fix
1 parent 1ad32da commit 94595f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mara_db/dbs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def sqlalchemy_url(self):
163163
return f'mssql+pyodbc://{self.user}:{urllib.parse.quote(self.password)}@{self.host}:{port}/{self.database}?driver={driver}'
164164

165165
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}'
166+
return f'mssql+pymssql://{self.user}:{urllib.parse.quote(self.password)}@{self.host}:{port}/{self.database}'
167167

168168
raise ValueError('You need either python module pyodbc or pymssql to use sqlalchemy with SQLServerDB.')
169169

0 commit comments

Comments
 (0)