Skip to content

Commit

Permalink
MONRG: Fix double-doubled quotes in generated .properties file.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 309]
  • Loading branch information
julianhyde committed Feb 19, 2003
1 parent 70c4270 commit 09484fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/mondrian/resource/Util.java
Expand Up @@ -234,7 +234,7 @@ static String quoteForProperties(String val) {
String s0;
s0 = replace(val, "\\", "\\\\");
// s0 = replace(val, "\"", "\\\"");
s0 = replace(s0, "'", "''");
// s0 = replace(s0, "'", "''");
s0 = replace(s0, "\n\r", "\\n");
s0 = replace(s0, "\n", "\\n");
s0 = replace(s0, "\r", "\\r");
Expand Down
4 changes: 2 additions & 2 deletions src/main/mondrian/test/ParameterTest.java
Expand Up @@ -102,15 +102,15 @@ public void testParamRef() {
assertEquals("xyY.xyY",s);
}
public void testParamRefWithoutParamFails() {
assertExprThrows("ParamRef(\"Y\")", "Parameter ''Y'' is referenced but never defined");
assertExprThrows("ParamRef(\"Y\")", "Parameter 'Y' is referenced but never defined");
}
public void testParamDefinedTwiceFails() {
assertThrows(
"select {[Measures].[Unit Sales]} on rows," + nl +
" {Parameter(\"P\",[Gender],[Gender].[M],\"Which gender?\")," + nl +
" Parameter(\"P\",[Gender],[Gender].[F],\"Which gender?\")} on columns" + nl +
"from Sales",
"Parameter ''P'' is defined ''2'' times");
"Parameter 'P' is defined '2' times");
}
public void testParameterMetadata() {
Connection connection = getConnection();
Expand Down

0 comments on commit 09484fc

Please sign in to comment.