sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1356323 - /sqoop/branches/sqoop2/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java
Date Mon, 02 Jul 2012 16:27:45 GMT
Author: blee
Date: Mon Jul  2 16:27:45 2012
New Revision: 1356323

URL: http://svn.apache.org/viewvc?rev=1356323&view=rev
Log:
SQOOP-511  Need to set persistent id for connector if in repository already

Modified:
    sqoop/branches/sqoop2/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java

Modified: sqoop/branches/sqoop2/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java
URL: http://svn.apache.org/viewvc/sqoop/branches/sqoop2/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java?rev=1356323&r1=1356322&r2=1356323&view=diff
==============================================================================
--- sqoop/branches/sqoop2/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java
(original)
+++ sqoop/branches/sqoop2/core/src/main/java/org/apache/sqoop/repository/JdbcRepository.java
Mon Jul  2 16:27:45 2012
@@ -60,6 +60,7 @@ public class JdbcRepository implements R
           throw new SqoopException(RepositoryError.JDBCREPO_0013,
               "given[" + mConnector + "] found[" + result + "]");
         }
+        mConnector.setPersistenceId(result.getPersistenceId());
       }
       tx.commit();
     } catch (Exception ex) {



Mime
View raw message