提交 7966888a 编写于 作者: S Serge Rider

#10392 Generic views read fixed


Former-commit-id: 224be3d6
上级 119e15a4
......@@ -354,7 +354,7 @@ public class GenericDataSource extends JDBCDataSource implements DBPTermProvider
@Override
public List<? extends GenericView> getViews(DBRProgressMonitor monitor) throws DBException {
public List<? extends GenericTableBase> getViews(DBRProgressMonitor monitor) throws DBException {
return structureContainer == null ? null : structureContainer.getViews(monitor);
}
......
......@@ -92,13 +92,13 @@ public abstract class GenericObjectContainer implements GenericStructContainer,
}
@Override
public List<? extends GenericView> getViews(DBRProgressMonitor monitor) throws DBException {
public List<? extends GenericTableBase> getViews(DBRProgressMonitor monitor) throws DBException {
List<? extends GenericTableBase> tables = getTables(monitor);
if (tables != null) {
List<GenericView> filtered = new ArrayList<>();
List<GenericTableBase> filtered = new ArrayList<>();
for (GenericTableBase table : tables) {
if (table instanceof GenericView) {
filtered.add((GenericView)table);
if (table.isView()) {
filtered.add(table);
}
}
return filtered;
......
......@@ -50,7 +50,7 @@ public interface GenericStructContainer extends DBSObjectContainer, DBSProcedure
ForeignKeysCache getForeignKeysCache();
Collection<? extends GenericView> getViews(DBRProgressMonitor monitor) throws DBException;
List<? extends GenericTableBase> getViews(DBRProgressMonitor monitor) throws DBException;
List<? extends GenericTable> getPhysicalTables(DBRProgressMonitor monitor) throws DBException;
List<? extends GenericTableBase> getTables(DBRProgressMonitor monitor) throws DBException;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册