Skip to content

Commit

Permalink
Fixed 1641
Browse files Browse the repository at this point in the history
  • Loading branch information
isharak committed Jun 18, 2018
1 parent 69a9166 commit a48393e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ private boolean isIDNTablesExist() {
try (Connection connection = IdentityDatabaseUtil.getDBConnection()) {
// Try to find whether there is IDN_ASSOCIATED_ID table.
DatabaseMetaData metaData = connection.getMetaData();
try (ResultSet resultSet = metaData.getTables(null, null, "IDN_ASSOCIATED_ID", new String[] { "TABLE" })) {
String tableName = "IDN_ASSOCIATED_ID";
if (metaData.storesLowerCaseIdentifiers()) {
tableName = tableName.toLowerCase();
}
try (ResultSet resultSet = metaData.getTables(null, null, tableName, new String[] { "TABLE" })) {
if (resultSet.next()) {
return true;
}
Expand Down

0 comments on commit a48393e

Please sign in to comment.