Skip to content

Commit

Permalink
Merge branch 'jam-py:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
platipusica authored Jun 21, 2024
2 parents 75490ed + ecc74ac commit 21a6c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jam/db/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@

def connect(database, user, password, host, port, encoding, server):
if encoding:
return pymssql.connect(server=server, database=database, user=user, password=password, host=host, port=port, charset=encoding)
return pymssql.connect(server=server, database=database, user=user, password=password, host=host, port=port, charset=encoding, autocommit=True)
else:
return pymssql.connect(server=server, database=database, user=user, password=password, host=host, port=port)
return pymssql.connect(server=server, database=database, user=user, password=password, host=host, port=port, autocommit=True)

def get_lastrowid(cursor):
return cursor.lastrowid
Expand Down

0 comments on commit 21a6c48

Please sign in to comment.