Skip to content

Commit bf48548

Browse files
Rearranged terms for clarity
To me, this reads more clearly
1 parent 0b0f8ab commit bf48548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sql/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def run(conn, sql, config, user_namespace):
276276
result = conn.session.execute(txt, user_namespace)
277277
try:
278278
# mssql has autocommit
279-
if 'mssql' not in str(conn.dialect) and config.autocommit:
279+
if config.autocommit and ('mssql' not in str(conn.dialect)):
280280
conn.session.execute('commit')
281281
except sqlalchemy.exc.OperationalError:
282282
pass # not all engines can commit

0 commit comments

Comments
 (0)