5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 15:00:45 +08:00

SQOOP-154. Fix connection leak in OracleManager.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Bayer 2011-07-22 20:04:27 +00:00
parent 49613bb5b7
commit 3f8252a28c

View File

@ -565,7 +565,7 @@ public String[] listDatabases() {
}
try {
discardConnection(false);
close();
} catch (SQLException ex) {
LOG.error("Unable to discard connection", ex);
}
@ -615,7 +615,7 @@ public String[] listTables() {
}
try {
discardConnection(false);
close();
} catch (SQLException ex) {
LOG.error("Unable to discard connection", ex);
}
@ -667,7 +667,7 @@ public String[] getColumnNames(String tableName) {
}
try {
discardConnection(false);
close();
} catch (SQLException ex) {
LOG.error("Unable to discard connection", ex);
}
@ -719,7 +719,7 @@ public String getPrimaryKey(String tableName) {
}
try {
discardConnection(false);
close();
} catch (SQLException ex) {
LOG.error("Unable to discard connection", ex);
}