sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheol...@apache.org
Subject git commit: SQOOP-765: JDBC repository is incorrectly checking if job exists in update handler
Date Wed, 12 Dec 2012 21:50:05 GMT
Updated Branches:
  refs/heads/sqoop2 0c608eada -> 9ab7ea6ee


SQOOP-765: JDBC repository is incorrectly checking if job exists in
update handler

(Jarek Jarcec Cecho via Cheolsoo Park)


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

Branch: refs/heads/sqoop2
Commit: 9ab7ea6ee02ee9633abcb4f7707e7961fd25eec3
Parents: 0c608ea
Author: Cheolsoo Park <cheolsoo@apache.org>
Authored: Wed Dec 12 13:49:26 2012 -0800
Committer: Cheolsoo Park <cheolsoo@apache.org>
Committed: Wed Dec 12 13:49:26 2012 -0800

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


http://git-wip-us.apache.org/repos/asf/sqoop/blob/9ab7ea6e/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java b/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java
index 6dc8baa..32df1e5 100644
--- a/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java
+++ b/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java
@@ -275,7 +275,7 @@ public class JdbcRepository implements Repository {
        if(!job.hasPersistenceId()) {
           throw new SqoopException(RepositoryError.JDBCREPO_0019);
         }
-        if(!handler.existsConnection(job.getPersistenceId(), conn)) {
+        if(!handler.existsJob(job.getPersistenceId(), conn)) {
           throw new SqoopException(RepositoryError.JDBCREPO_0020,
             "Invalid id: " + job.getPersistenceId());
         }


Mime
View raw message