You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by fo...@apache.org on 2018/01/26 19:03:12 UTC

incubator-airflow git commit: [AIRFLOW-2030] Fix KeyError:`i` in DbApiHook for insert

Repository: incubator-airflow
Updated Branches:
  refs/heads/master e1bf38942 -> 0565bdc4e


[AIRFLOW-2030] Fix KeyError:`i` in DbApiHook for insert

Closes #2972 from untwal/dbahook/fix_key_error


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/0565bdc4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/0565bdc4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/0565bdc4

Branch: refs/heads/master
Commit: 0565bdc4ea8c9625eac253865bb91aac293d0300
Parents: e1bf389
Author: Manish Untwal <ma...@gmail.com>
Authored: Fri Jan 26 20:03:05 2018 +0100
Committer: Fokko Driesprong <fo...@godatadriven.com>
Committed: Fri Jan 26 20:03:05 2018 +0100

----------------------------------------------------------------------
 airflow/hooks/dbapi_hook.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/0565bdc4/airflow/hooks/dbapi_hook.py
----------------------------------------------------------------------
diff --git a/airflow/hooks/dbapi_hook.py b/airflow/hooks/dbapi_hook.py
index bbdedd7..555ac9d 100644
--- a/airflow/hooks/dbapi_hook.py
+++ b/airflow/hooks/dbapi_hook.py
@@ -195,7 +195,7 @@ class DbApiHook(BaseHook):
             target_fields = "({})".format(target_fields)
         else:
             target_fields = ''
-
+        i = 0
         with closing(self.get_conn()) as conn:
             if self.supports_autocommit:
                 self.set_autocommit(conn, False)