Skip to content

Commit

Permalink
Merge pull request apache#1 from mtustin-handy/mtustin-handy-mysql-co…
Browse files Browse the repository at this point in the history
…mmit-patch

Fix issue apache#459 - mysql error 2014
  • Loading branch information
mtustin-handy committed Sep 24, 2015
2 parents 70b342f + 3f72041 commit 83c231f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/hooks/dbapi_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def run(self, sql, autocommit=False, parameters=None):
cur = conn.cursor()
for s in sql:
cur.execute(s, parameters)
conn.commit()
cur.close()
conn.commit()
conn.close()

def set_autocommit(self, conn, autocommit):
Expand Down

0 comments on commit 83c231f

Please sign in to comment.