diff --git a/Model/src/main/java/org/gusdb/wdk/model/dbms/TableUtilization.java b/Model/src/main/java/org/gusdb/wdk/model/dbms/TableUtilization.java index ad241754d..69dd67f1f 100644 --- a/Model/src/main/java/org/gusdb/wdk/model/dbms/TableUtilization.java +++ b/Model/src/main/java/org/gusdb/wdk/model/dbms/TableUtilization.java @@ -52,7 +52,7 @@ public static void main(String[] args) throws Exception { int numSqlQueries = 0; for (SqlQuery query : IteratorUtil.toIterable(queries.iterator())) { numSqlQueries++; - String sql = query.getSql(); + String sql = query.getSql().toLowerCase(); for (String table : tables.keySet()) { if (sql.contains(table)) { tables.get(table).add(query.getFullName()); @@ -72,7 +72,7 @@ private static Map> readTablesFile(Path dbTableFile) throws try (BufferedReader in = new BufferedReader(new FileReader(dbTableFile.toFile()))) { Map> tables = new LinkedHashMap<>(); while (in.ready()) { - tables.put(in.readLine().trim(), new ArrayList<>()); + tables.put(in.readLine().trim().toLowerCase(), new ArrayList<>()); } return tables; }