Skip to content

Commit

Permalink
FIX resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko committed Feb 3, 2025
1 parent 0895655 commit f5357b9
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,19 +289,6 @@ String getTableDialect() {
return "h char(128),k bytea,v bytea,primary key(h,k)";
}

boolean isExistsTable(TreeName treeName) {
try(final ResultSet rs = con.getMetaData().getTables(null, null, tree2table.get(treeName), new String[]{"TABLE"})) {
while (rs.next()) {
if (tree2table.get(treeName).equals(rs.getString("TABLE_NAME"))){
return true;
}
}
} catch (Exception e) {
throw new StorageRuntimeException(e);
}
return false;
}

@Override
public void openTree(TreeName treeName, boolean createOnDemand) {
if (createOnDemand && !isExistsTable(treeName)) {
Expand Down

0 comments on commit f5357b9

Please sign in to comment.