Skip to content

Commit

Permalink
Lowercase also camel_cased table names after processing in HSQLDB
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraZizka committed Nov 26, 2018
1 parent 59e1c3c commit e4e8851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cz/dynawest/csvcruncher/util/FilesUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private static void addTheRightTypeToJavaxJsonBuilder(ResultSet resultSet, int c
{
ResultSetMetaData metaData = resultSet.getMetaData();
String columnLabel = metaData.getColumnLabel(colIndex);
if (columnLabel.matches("[A-Z]+"))
if (columnLabel.matches("[A-Z][A-Z_]*"))
columnLabel = columnLabel.toLowerCase();

if (resultSet.getObject(colIndex) == null) {
Expand Down

0 comments on commit e4e8851

Please sign in to comment.