Skip to content

Commit

Permalink
support materialized views (at least the ones in PostgreSQL), pentaho…
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Wysocki committed Mar 20, 2015
1 parent f153935 commit f20a03b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/mondrian/gui/JdbcMetaData.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/mondrian/rolap/aggmatcher/JdbcSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f20a03b

Please sign in to comment.