Sequence and Function pages are now properly filtered on namespace.

This commit is contained in:
eelke 2019-02-09 20:37:34 +01:00
parent 7ca671a078
commit f2808de613
17 changed files with 136 additions and 48 deletions

View file

@ -43,13 +43,13 @@ void TablesTableModel::reloadData()
if (e.kind == RelKind::Table || e.kind == RelKind::View
|| e.kind == RelKind::MaterializedView || e.kind == RelKind::ForeignTable) {
switch (m_namespaceFilter) {
case TablesTableModel::User:
case NamespaceFilter::User:
add = !e.ns().isSystemCatalog();
break;
case TablesTableModel::PgCatalog:
case NamespaceFilter::PgCatalog:
add = e.ns().objectName() == "pg_catalog";
break;
case TablesTableModel::InformationSchema:
case NamespaceFilter::InformationSchema:
add = e.ns().objectName() == "information_schema";
break;
}