Skip to content

Commit

Permalink
MONDRIAN: Implement Olap4jPreparedStatement.getCube().
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian-release/3.2/": change = 13606]
  • Loading branch information
julianhyde committed May 5, 2010
1 parent 914db76 commit 58e4b69
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ public OlapParameterMetaData getParameterMetaData() throws OlapException {
}

public Cube getCube() {
throw new UnsupportedOperationException();
return cellSetMetaData.getCube();
}

// implement PreparedStatement
Expand Down Expand Up @@ -259,6 +259,7 @@ public String getParameterName(int param) throws OlapException {
private Parameter getParameter(int param) throws OlapException {
final Parameter[] parameters = query.getParameters();
if (param < 1 || param > parameters.length) {
//noinspection ThrowableResultOfMethodCallIgnored
throw this.olap4jConnection.helper.toOlapException(
this.olap4jConnection.helper.createException(
"parameter ordinal " + param + " out of range"));
Expand Down

0 comments on commit 58e4b69

Please sign in to comment.