Skip to content

Commit

Permalink
0002490 - Oracle support for tables with "_" so that it is not treated
Browse files Browse the repository at this point in the history
as a wildcard.
  • Loading branch information
Hicks, Josh committed Feb 5, 2016
1 parent 15db65f commit a2bb2f3
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -382,4 +382,16 @@ protected Collection<IIndex> readIndices(Connection connection,
}
return indices.values();
}

@Override
protected String getTableNamePattern(String tableName) {
/*
* When looking up a table definition, Oracle treats underscore (_) in
* the table name as a wildcard, so it needs to be escaped, or you'll
* get back column names for more than one table. Example:
* DatabaseMetaData.metaData.getColumns(null, null, "SYM\\_NODE", null)
*/
return String.format("%s", tableName).replaceAll("\\_", "/_");
//return tableName;
}
}

0 comments on commit a2bb2f3

Please sign in to comment.