Skip to content

Commit

Permalink
0002145: Do a better job of table lookup when case is suppose to be i…
Browse files Browse the repository at this point in the history
…gnored. Lookup across catalogs and schemas is now case insensitive
  • Loading branch information
chenson42 committed Jan 19, 2015
1 parent 98681fa commit 0865b26
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -245,7 +245,7 @@ public Table readTableFromDatabase(String catalogName, String schemaName, String
List<String> catalogNames = reader.getCatalogNames();
if (catalogNames != null) {
for (String name : catalogNames) {
if (name.equalsIgnoreCase(catalogName)) {
if (name != null && name.equalsIgnoreCase(catalogName)) {
catalogName = name;
break;
}
Expand All @@ -255,7 +255,7 @@ public Table readTableFromDatabase(String catalogName, String schemaName, String
List<String> schemaNames = reader.getSchemaNames(catalogName);
if (schemaNames != null) {
for (String name : schemaNames) {
if (name.equalsIgnoreCase(schemaName)) {
if (name != null && name.equalsIgnoreCase(schemaName)) {
schemaName = name;
break;
}
Expand All @@ -265,7 +265,7 @@ public Table readTableFromDatabase(String catalogName, String schemaName, String
List<String> tableNames = reader.getTableNames(catalogName, schemaName, null);
if (tableNames != null) {
for (String name : tableNames) {
if (name.equalsIgnoreCase(tableName)) {
if (name != null && name.equalsIgnoreCase(tableName)) {
tableName = name;
break;
}
Expand Down

0 comments on commit 0865b26

Please sign in to comment.