Skip to content

Commit

Permalink
Fixes an issue with Palo servers where some xsd:schema elements are i…
Browse files Browse the repository at this point in the history
…nlined. This fix makes sure that we only read elements of the rowset namespace and skips elements from other namespaces.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@301 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Feb 9, 2010
1 parent 2523f8c commit 43c9cab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/org/olap4j/driver/xmla/XmlaOlap4jDatabaseMetaData.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ private ResultSet getMetadata(
List<List<Object>> rowList = new ArrayList<List<Object>>();
rowLoop:
for (Element row : XmlaOlap4jUtil.childElements(root)) {
if (row.getNamespaceURI() != null
&& !row.getNamespaceURI().equals(
"urn:schemas-microsoft-com:xml-analysis:rowset"))
{
// Ignore any vendor specific namespaced elements that
// are not part of the rowset namespace
continue;
}
final ArrayList<Object> valueList = new ArrayList<Object>();
for (Map.Entry<String, Matcher> entry : predicateList.entrySet()) {
final String column = entry.getKey();
Expand Down

0 comments on commit 43c9cab

Please sign in to comment.