Skip to content

Commit

Permalink
MONDRIAN: Fixes some issues with the Vertica dialect. It wasn't getti…
Browse files Browse the repository at this point in the history
…ng detected correctly accross all versions.

[git-p4: depot-paths = "//open/mondrian/": change = 14900]
  • Loading branch information
lucboudreau committed Jan 24, 2012
1 parent 8b1e3d5 commit 1104a01
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/mondrian/spi/impl/JdbcDialectImpl.java
Expand Up @@ -944,7 +944,9 @@ public static DatabaseProduct getProduct(
return DatabaseProduct.INFOBRIGHT;
} else if (upperProductName.equals("MYSQL")) {
return DatabaseProduct.MYSQL;
} else if (upperProductName.equals("VERTICA")) {
} else if (upperProductName.equals("VERTICA")
|| upperProductName.equals("VERTICA DATABASE"))
{
return DatabaseProduct.VERTICA;
} else if (upperProductName.equals("VECTORWISE")) {
return DatabaseProduct.VECTORWISE;
Expand Down
9 changes: 9 additions & 0 deletions src/main/mondrian/spi/impl/VerticaDialect.java
Expand Up @@ -39,6 +39,15 @@ public boolean requiresAliasForFromQuery() {
return true;
}

public boolean allowsFromQuery() {
return true;
}

@Override
public boolean allowsCountDistinct() {
return false;
}

@Override
public DatabaseProduct getDatabaseProduct() {
return DatabaseProduct.VERTICA;
Expand Down

0 comments on commit 1104a01

Please sign in to comment.