5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 02:09:11 +08:00

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

update handler

(Jarek Jarcec Cecho via Cheolsoo Park)
This commit is contained in:
Cheolsoo Park 2012-12-12 13:49:26 -08:00
parent 0c608eada4
commit 9ab7ea6ee0

View File

@ -275,7 +275,7 @@ public Object doIt(Connection conn) {
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());
}