5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-19 02:10:54 +08:00

SQOOP-487 Log InformationSchemaManager.getPrimaryKeyQuery invocation

git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1345313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bilung Lee 2012-06-01 18:51:58 +00:00
parent 67847bd071
commit 0c406e7830

View File

@ -190,7 +190,11 @@ public String getPrimaryKey(String tableName) {
try {
c = getConnection();
s = c.createStatement();
rs = s.executeQuery(getPrimaryKeyQuery(tableName));
String primaryKeyQuery = getPrimaryKeyQuery(tableName);
LOG.debug("Retrieving primary key for table '"
+ tableName + "' with query " + primaryKeyQuery);
rs = s.executeQuery(primaryKeyQuery);
while (rs.next()) {
columns.add(rs.getString(1));
}