Fixed issue when reading metadata.
@@ -358,7 +358,6 @@ public class DbUtils {
connection = DataSourceUtil.getConnection(allInOneName);
preparedStatement = stmtCreator.createPreparedStatement(connection, sql, parameters, hints);
resultSet = preparedStatement.executeQuery();
- while (resultSet.next()) {
ResultSetMetaData metaData = resultSet.getMetaData();
for (int i = 1; i <= metaData.getColumnCount(); i++) {
String columnName = metaData.getColumnName(i);
@@ -372,7 +371,6 @@ public class DbUtils {
if (!map.containsKey(columnName) && null != javaType)
map.put(columnName, javaType);
}
- }
} catch (Throwable e) {
throw e;
} finally {
@@ -407,7 +405,6 @@ public class DbUtils {
connection = DataSourceUtil.getConnection(allInOneName);
preparedStatement = stmtCreator.createPreparedStatement(connection, sql, parameters, hints);
resultSet = preparedStatement.executeQuery();
- while (resultSet.next()) {
ResultSetMetaData metaData = resultSet.getMetaData();
for (int i = 1; i <= metaData.getColumnCount(); i++) {
String columnName = metaData.getColumnName(i);
@@ -417,7 +414,6 @@ public class DbUtils {
if (!map.containsKey(columnName) && null != sqlType)
map.put(columnName, sqlType);
}
- }
} catch (Throwable e) {
throw e;
} finally {
