Skip to content

Commit

Permalink
小调整。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Sep 15, 2023
1 parent 70d6d43 commit 15c85fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ protected void processIndexes(TableMeta tableMeta, ResultSet rs) throws SQLExcep

protected void processPrimaries(TableMeta tableMeta, ResultSet rs) throws SQLException {
while (rs.next()) {
String pkName = rs.getString("PK_NAME");
String pkColName = rs.getString("COLUMN_NAME");
for (IndexMeta i : tableMeta.getAllIndexes().values()) {
i.getValues().stream()
.filter(c -> pkName.equals(c.getColumnName()))
.filter(c -> pkColName.equals(c.getColumnName()))
.forEach(c -> i.setIndextype(IndexType.PRIMARY));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void getTableMetaTest() throws SQLException {

Assertions.assertNotNull(tableMeta);

tableMeta = tableMetaCache.getTableMeta(proxy.getPlainConnection(), "\"dt1\"", proxy.getResourceId());
tableMeta = tableMetaCache.getTableMeta(proxy.getPlainConnection(), "dt1", proxy.getResourceId());

Assertions.assertNotNull(tableMeta);
}
Expand Down

0 comments on commit 15c85fe

Please sign in to comment.