sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1345313 - /sqoop/trunk/src/java/org/apache/sqoop/manager/CatalogQueryManager.java
Date Fri, 01 Jun 2012 18:51:59 GMT
Author: blee
Date: Fri Jun  1 18:51:58 2012
New Revision: 1345313

URL: http://svn.apache.org/viewvc?rev=1345313&view=rev
Log:
SQOOP-487  Log InformationSchemaManager.getPrimaryKeyQuery invocation

Modified:
    sqoop/trunk/src/java/org/apache/sqoop/manager/CatalogQueryManager.java

Modified: sqoop/trunk/src/java/org/apache/sqoop/manager/CatalogQueryManager.java
URL: http://svn.apache.org/viewvc/sqoop/trunk/src/java/org/apache/sqoop/manager/CatalogQueryManager.java?rev=1345313&r1=1345312&r2=1345313&view=diff
==============================================================================
--- sqoop/trunk/src/java/org/apache/sqoop/manager/CatalogQueryManager.java (original)
+++ sqoop/trunk/src/java/org/apache/sqoop/manager/CatalogQueryManager.java Fri Jun  1 18:51:58
2012
@@ -190,7 +190,11 @@ public abstract class CatalogQueryManage
     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));
       }



Mime
View raw message