airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject [3/4] incubator-airflow git commit: [AIRFLOW-775] Fix autocommit settings with Jdbc hook
Date Mon, 23 Apr 2018 17:08:33 GMT
[AIRFLOW-775] Fix autocommit settings with Jdbc hook


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

Branch: refs/heads/master
Commit: 97954e21229982f580f18732c5018714f7e51087
Parents: a33b29c
Author: Arthur Wiedmer <arthur@apache.org>
Authored: Mon Apr 23 09:42:21 2018 -0700
Committer: Arthur Wiedmer <arthur@apache.org>
Committed: Mon Apr 23 09:52:08 2018 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/97954e21/airflow/hooks/jdbc_hook.py
----------------------------------------------------------------------
diff --git a/airflow/hooks/jdbc_hook.py b/airflow/hooks/jdbc_hook.py
index b76e80d..8f0cd67 100644
--- a/airflow/hooks/jdbc_hook.py
+++ b/airflow/hooks/jdbc_hook.py
@@ -58,4 +58,4 @@ class JdbcHook(DbApiHook):
         :param conn: The connection
         :return:
         """
-        conn.jconn.autocommit = autocommit
+        conn.jconn.setAutoCommit(autocommit)


Mime
View raw message