Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 076fff2

Browse files
authored
Merge pull request #730 from datafold/fix-init-order
Call parent's init before field initialisation, not after
2 parents f096d0a + 3e30f10 commit 076fff2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_diff/databases/mssql.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ class MsSQL(ThreadedDatabase):
176176
_mssql: Any
177177

178178
def __init__(self, host, port, user, password, *, database, thread_count, **kw):
179+
super().__init__(thread_count=thread_count)
180+
179181
args = dict(server=host, port=port, database=database, user=user, password=password, **kw)
180182
self._args = {k: v for k, v in args.items() if v is not None}
181183
self._args["driver"] = "{ODBC Driver 18 for SQL Server}"
@@ -190,7 +192,6 @@ def __init__(self, host, port, user, password, *, database, thread_count, **kw):
190192
raise ValueError("Specify a default database and schema.")
191193

192194
self._mssql = None
193-
super().__init__(thread_count=thread_count)
194195

195196
def create_connection(self):
196197
self._mssql = import_mssql()

0 commit comments

Comments
 (0)