Skip to content

Commit

Permalink
MONDRIAN
Browse files Browse the repository at this point in the history
   Quick fix: have XmlaHandler always request a LIST
   rather than an ITERABLE, bug 1653587

[git-p4: depot-paths = "//open/mondrian/": change = 8684]
  • Loading branch information
Richard Emberson committed Feb 8, 2007
1 parent eab190e commit 2f8ec1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/mondrian/xmla/XmlaHandler.java
Expand Up @@ -8,6 +8,7 @@
*/
package mondrian.xmla;

import mondrian.calc.ExpCompiler.ResultStyle;
import mondrian.olap.*;
import mondrian.olap.Connection;
import mondrian.olap.DriverManager;
Expand Down Expand Up @@ -822,6 +823,7 @@ private QueryResult executeDrillThroughQuery(XmlaRequest request)

final String statement = request.getStatement();
final Query query = connection.parseQuery(statement);
query.setResultStyle(ResultStyle.LIST);
final Result result = connection.execute(query);
Cell dtCell = result.getCell(new int[] {0, 0});

Expand Down Expand Up @@ -1105,6 +1107,7 @@ private QueryResult executeQuery(XmlaRequest request)
final Query query;
try {
query = connection.parseQuery(statement);
query.setResultStyle(ResultStyle.LIST);
} catch (XmlaException ex) {
throw ex;
} catch (Exception ex) {
Expand Down Expand Up @@ -2277,6 +2280,7 @@ private TabularRowSet executeColumnQuery(XmlaRequest request)
final Connection connection = getConnection(dsCatalog, role);
final String statement = request.getStatement();
final Query query = connection.parseQuery(statement);
query.setResultStyle(ResultStyle.LIST);
final Result result = connection.execute(query);
Cell dtCell = result.getCell(new int[] {0, 0});

Expand Down

0 comments on commit 2f8ec1b

Please sign in to comment.