Author: rareddy
Date: 2011-11-16 14:45:47 -0500 (Wed, 16 Nov 2011)
New Revision: 3656
Modified:
trunk/connectors/translator-hive/src/main/java/org/teiid/translator/hive/HiveMetadataProcessor.java
Log:
TEIID-1810: fixing a bug while reading metadata for the dynamic VDBs
Modified:
trunk/connectors/translator-hive/src/main/java/org/teiid/translator/hive/HiveMetadataProcessor.java
===================================================================
---
trunk/connectors/translator-hive/src/main/java/org/teiid/translator/hive/HiveMetadataProcessor.java 2011-11-16
16:53:41 UTC (rev 3655)
+++
trunk/connectors/translator-hive/src/main/java/org/teiid/translator/hive/HiveMetadataProcessor.java 2011-11-16
19:45:47 UTC (rev 3656)
@@ -52,7 +52,7 @@
try {
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SHOW TABLES"); //$NON-NLS-1$
- if (rs.next()){
+ while (rs.next()){
tables.add(rs.getString(1));
}
rs.close();
@@ -96,7 +96,7 @@
table.setSupportsUpdate(true);
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("DESCRIBE "+tableName); //$NON-NLS-1$
- if (rs.next()){
+ while (rs.next()){
String name = rs.getString(1);
String type = rs.getString(2);
String runtimeType = getRuntimeType(type);
Show replies by date