Commit 7881915 1 parent f78a067 commit 7881915 Copy full SHA for 7881915
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
logger = logging .getLogger ('luigi-interface' )
23
23
24
24
try :
25
- import _mssql
25
+ import pymssql
26
26
except ImportError :
27
27
logger .warning ("Loading MSSQL module without the python package pymssql. \
28
28
This will crash at runtime if SQL Server functionality is used." )
@@ -107,7 +107,7 @@ def exists(self, connection=None):
107
107
WHERE update_id = %s
108
108
""" .format (marker_table = self .marker_table ),
109
109
(self .update_id ,))
110
- except _mssql .MSSQLDatabaseException as e :
110
+ except pymssql .MSSQLDatabaseException as e :
111
111
# Error number for table doesn't exist
112
112
if e .number == 208 :
113
113
row = None
@@ -120,7 +120,7 @@ def connect(self):
120
120
"""
121
121
Create a SQL Server connection and return a connection object
122
122
"""
123
- connection = _mssql .connect (user = self .user ,
123
+ connection = pymssql .connect (user = self .user ,
124
124
password = self .password ,
125
125
server = self .host ,
126
126
port = self .port ,
@@ -145,7 +145,7 @@ def create_marker_table(self):
145
145
"""
146
146
.format (marker_table = self .marker_table )
147
147
)
148
- except _mssql .MSSQLDatabaseException as e :
148
+ except pymssql .MSSQLDatabaseException as e :
149
149
# Table already exists code
150
150
if e .number == 2714 :
151
151
pass
You can’t perform that action at this time.
0 commit comments