Browse Source

Merge pull request #3125 in DESIGN/design from bugfix/10.0 to feature/10.0

* commit '01ee4245aa33bae03a728bf4c352fb7f07a618d9':
  REPORT-44785 数据集-数据库数据集-视图不能及时更新
research/11.0
superman 4 years ago
parent
commit
ae2ab1952b
  1. 7
      designer-base/src/main/java/com/fr/design/gui/ilist/TableViewList.java

7
designer-base/src/main/java/com/fr/design/gui/ilist/TableViewList.java

@ -106,6 +106,13 @@ public class TableViewList extends UIList {
if (!status) { if (!status) {
throw new Exception(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Database_Connection_Failed")); throw new Exception(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Database_Connection_Failed"));
} }
String[] schemas = DataCoreUtils.getDatabaseSchema(datasource);
schemas = (schemas == null || schemas.length == 0) ? new String[]{null} : schemas;
for (String schema : schemas) {
DataCoreUtils.refreshTables(datasource, TableProcedure.TABLE, schema);
DataCoreUtils.refreshTables(datasource, TableProcedure.VIEW, schema);
DataCoreUtils.refreshTables(datasource, TableProcedure.PROCEDURE, schema);
}
return processDataInAnotherThread(databaseName, searchFilter, typesFilter); return processDataInAnotherThread(databaseName, searchFilter, typesFilter);
} }

Loading…
Cancel
Save