Permalink
Browse files

support materialized views (at least the ones in PostgreSQL), pentaho…

  • Loading branch information...
Robert Wysocki
Robert Wysocki committed Mar 20, 2015
1 parent f153935 commit f20a03be232794509ceb164a21deabc2e14f3f85
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/main/mondrian/gui/JdbcMetaData.java
  2. +1 −1 src/main/mondrian/rolap/aggmatcher/JdbcSchema.java
@@ -266,7 +266,7 @@ private void setAllTables(DbSchema dbs) {
// Tables and views can be used
try {
rs = md.getTables(
null, dbs.name, null, new String[]{"TABLE", "VIEW"});
null, dbs.name, null, new String[]{"TABLE", "VIEW", "MATERIALIZED VIEW"});
} catch (Exception e) {
// this is a workaround for databases that throw an exception
// when views are requested.
@@ -1220,7 +1220,7 @@ private void loadTables() throws SQLException {
try {
conn = getDataSource().getConnection();
final DatabaseMetaData databaseMetaData = conn.getMetaData();
String[] tableTypes = { "TABLE", "VIEW" };
String[] tableTypes = { "TABLE", "VIEW", "MATERIALIZED VIEW" };
if (databaseMetaData.getDatabaseProductName().toUpperCase().indexOf(
"VERTICA") >= 0)
{

0 comments on commit f20a03b

Please sign in to comment.