Skip to content

Commit

Permalink
Merge pull request #460 from mtustin-handy/mtustin-handy-mysql-commit…
Browse files Browse the repository at this point in the history
…-patch

Fix issue #459 - mysql error 2014
  • Loading branch information
mistercrunch committed Sep 24, 2015
2 parents 678987e + 3f72041 commit 41695a1
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 41695a1

Please sign in to comment.