Skip to content

Commit

Permalink
MONDRIAN: Oops!
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 14720]
  • Loading branch information
julianhyde committed Oct 24, 2011
1 parent 56221a4 commit e3b99f7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/mondrian/rolap/RolapCell.java
Expand Up @@ -103,15 +103,17 @@ public String getDrillThroughSQL(boolean extendedContext) {
if (cellRequest == null) {
return null;
}
final RolapConnection connection =
result.getExecution().getMondrianStatement()
.getMondrianConnection();
final RolapAggregationManager aggMgr =
result.getCube().getStar().getAggregationManager();
connection.getServer().getAggregationManager();
return aggMgr.getDrillThroughSql(
cellRequest,
starPredicateSlicer,
false);
}


public int getDrillThroughCount() {
final Member[] currentMembers = getMembersForDrillThrough();
// Create a StarPredicate to represent the compound
Expand All @@ -129,11 +131,11 @@ public int getDrillThroughCount() {
if (cellRequest == null) {
return -1;
}
RolapConnection connection =
final RolapConnection connection =
result.getExecution().getMondrianStatement()
.getMondrianConnection();
final RolapAggregationManager aggMgr =
result.getCube().getStar().getAggregationManager();
connection.getServer().getAggregationManager();
final String sql =
aggMgr.getDrillThroughSql(
cellRequest,
Expand Down

0 comments on commit e3b99f7

Please sign in to comment.