[Mondrian] RowsetDefinition.java - possible minor bug

Julian Hyde jhyde at pentaho.com
Fri May 20 19:47:00 EDT 2011

Generally Member.toString() is equivalent to getUniqueName(). If there are
any subclasses where this is not the case, let me know. Otherwise I don't
consider this a bug.


From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org] On
Behalf Of Michele Rossi
Sent: Friday, May 20, 2011 10:18 AM
To: Mondrian developer mailing list
Subject: [Mondrian] RowsetDefinition.java - possible minor bug

if you look at line 4527 of RowsetDefinition.java
(mondrian.xmla.RowsetDefinition) you will see

row.set(DefaultMember.name, hierarchy.getDefaultMember());

which I think should be

row.set(DefaultMember.name, hierarchy.getDefaultMember().getUniqueName());

The current implementation is calling toString() on the default member so it
only works if toString() is the same as getUniqueName().


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20110520/d61f6015/attachment.html 

More information about the Mondrian mailing list