sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: SQOOP-928: PostgresqlManager should rollback any pending changes instead of commit when closing connections
Date Tue, 05 Mar 2013 03:12:31 GMT
Updated Branches:
  refs/heads/trunk f4d5ed537 -> 34bdf07bc


SQOOP-928: PostgresqlManager should rollback any pending changes instead of commit when closing
connections

(Venkat Ranganathan via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/34bdf07b
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/34bdf07b
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/34bdf07b

Branch: refs/heads/trunk
Commit: 34bdf07bc847a727a9508fd0ed071635d644721e
Parents: f4d5ed5
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Mon Mar 4 19:11:46 2013 -0800
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Mon Mar 4 19:11:46 2013 -0800

----------------------------------------------------------------------
 .../apache/sqoop/manager/PostgresqlManager.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/34bdf07b/src/java/org/apache/sqoop/manager/PostgresqlManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/manager/PostgresqlManager.java b/src/java/org/apache/sqoop/manager/PostgresqlManager.java
index 609a457..bd882b9 100644
--- a/src/java/org/apache/sqoop/manager/PostgresqlManager.java
+++ b/src/java/org/apache/sqoop/manager/PostgresqlManager.java
@@ -96,7 +96,7 @@ public class PostgresqlManager
   @Override
   public void close() throws SQLException {
     if (this.hasOpenConnection()) {
-      this.getConnection().commit(); // Commit any changes made thus far.
+      this.getConnection().rollback(); // rollback any pending changes.
     }
 
     super.close();


Mime
View raw message