Browse Source

Pull request #3113: REPORT-44785 数据集-数据库数据集-视图不能及时更新

Merge in DESIGN/design from ~ZACK/design:bugfix/10.0 to bugfix/10.0

* commit '5a95835d2ac6cc5a709fef12ad27d7ccaa30345a':
  REPORT-44785 数据集-数据库数据集-视图不能及时更新
bugfix/10.0
zack 4 years ago
parent
commit
493cb05e4c
  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) {
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);
}

Loading…
Cancel
Save