Skip to content

Commit

Permalink
0004211: MSSQL JDBC 7.4 with Azure causing NullPointerException while
Browse files Browse the repository at this point in the history
reading tables
  • Loading branch information
erilong committed Dec 18, 2019
1 parent dae639b commit 84f01d2
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -95,12 +95,12 @@ protected Table readTable(Connection connection, DatabaseMetaDataWrapper metaDat
}

Table table = super.readTable(connection, metaData, values);

if(StringUtils.equalsIgnoreCase(table.getSchema(),"sys")){
return null;
}

if (table != null) {
if (StringUtils.equalsIgnoreCase(table.getSchema(), "sys")) {
return null;
}

// Sql Server does not return the auto-increment status via the
// database metadata
determineAutoIncrementFromResultSetMetaData(connection, table, table.getColumns());
Expand Down

0 comments on commit 84f01d2

Please sign in to comment.