Skip to content

Commit

Permalink
MONDRIAN
Browse files Browse the repository at this point in the history
       It there is a trailing ';' character, remove it before 
       submitting mdx for execution.

[git-p4: depot-paths = "//open/mondrian/": change = 6765]
  • Loading branch information
Richard Emberson committed Jun 2, 2006
1 parent 4006009 commit 66649de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/mondrian/tui/CmdRunner.java
Expand Up @@ -911,13 +911,15 @@ protected void commandLoop(InputStream in, boolean interactive)
} else if (line.length() > 0) {
// OK, just add the line to the mdx query we are building.
inMDXCmd = true;
buf.append(line);
if (line.endsWith(SEMI_COLON_STRING)) {
// Remove the ';' character.
buf.append(line.substring(0, line.length()-1));
String mdxCmd = buf.toString().trim();
debug("mdxCmd=\""+mdxCmd+"\"");
resultString = executeMDXCmd(mdxCmd);
inMDXCmd = false;
} else {
buf.append(line);
// add carriage return so that query keeps formatting
buf.append(nl);
}
Expand Down

0 comments on commit 66649de

Please sign in to comment.