airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fo...@apache.org
Subject incubator-airflow git commit: [AIRFLOW-2030] Fix KeyError:`i` in DbApiHook for insert
Date Fri, 26 Jan 2018 19:03:12 GMT
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 <manishuntwal6@gmail.com>
Authored: Fri Jan 26 20:03:05 2018 +0100
Committer: Fokko Driesprong <fokkodriesprong@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)


Mime
View raw message