Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi committed Oct 21, 2024
1 parent f8344d0 commit 049f72a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,14 @@ private Pair<String, String> checkTableExistenceOnGivenPath(
for (final Map.Entry<String, ? extends Map<String, ?>> dbEntry : tableMap.entrySet()) {
final String database = dbEntry.getKey();
if (!(path.startsWith(database, dbStartIndex)
&& path.length() > dbStartIndex + database.length()
&& path.charAt(dbStartIndex + database.length()) == PATH_SEPARATOR)) {
continue;
}
final int tableStartIndex = dbStartIndex + database.length() + 1;
for (final String tableName : dbEntry.getValue().keySet()) {
if (path.startsWith(tableName, tableStartIndex)
&& path.length() > tableStartIndex + tableName.length()
&& path.charAt(tableStartIndex + tableName.length()) == PATH_SEPARATOR) {
return new Pair<>(database, tableName);
}
Expand Down

0 comments on commit 049f72a

Please sign in to comment.