Skip to content

Commit 51fab4b

Browse files
author
platipusica
committed
mssql odbc typo
1 parent 3fe1b72 commit 51fab4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jam/db/mssql_db2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self):
99
#DRIVER={ODBC Driver 17 for SQL Server};SERVER=ANDREW-PC\SQLEXPRESS;DATABASE=demo;UID=sa;PWD=1111
1010
#DSN=SQL Server;DATABASE=demo;UID=sa;PWD=1111
1111
def connect(self, db_info):
12-
return pyodbc.connect(db_info.dns)
12+
return pyodbc.connect(db_info.dsn)
1313

1414
def get_lastrowid(self, cursor):
1515
cursor.execute('SELECT @@IDENTITY')

0 commit comments

Comments
 (0)