In Mondrian.olap.Util.singleQuoteString:

The line:
String s0 = replace(val, "'", "''");

Should be replaced with:
String s0 = replace(replace(val, "'", "''"), "\\", "\\\\");
or similar in order to escape backslashes. Currently backslashes in strings escape the next character in the string, or in the case the backslash is the last character in the string, it escapes the encapsulating quote.

thanks,
Jason

_______________________________________________
Mondrian mailing list
Mondrian (AT) pentaho (DOT) org
http://lists.pentaho.org/mailman/listinfo/mondrian