Skip to content

Commit

Permalink
Schema/table filters reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrczarnas committed May 25, 2024
1 parent d8404f2 commit c428565
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public ResponseEntity<Flux<TableListModel>> findTables(
if (Strings.isNullOrEmpty(tableNameFilter)) {
tableNameFilter = "*";
}
tableSearchFilters.setFullTableName(tableNameFilter + "." + schemaNameFilter);
tableSearchFilters.setFullTableName(schemaNameFilter + "." + tableNameFilter);

if (label.isPresent() && label.get().size() > 0) {
tableSearchFilters.setLabels(label.get().toArray(String[]::new));
Expand Down Expand Up @@ -269,7 +269,7 @@ public ResponseEntity<Flux<ColumnListModel>> findColumns(
if (Strings.isNullOrEmpty(tableNameFilter)) {
tableNameFilter = "*";
}
columnSearchFilters.setSchemaTableName(tableNameFilter + "." + schemaNameFilter);
columnSearchFilters.setSchemaTableName(schemaNameFilter + "." + tableNameFilter);

if (label.isPresent() && label.get().size() > 0) {
columnSearchFilters.setColumnLabels(label.get().toArray(String[]::new));
Expand Down

0 comments on commit c428565

Please sign in to comment.