From af107f839e8853ccd62147ebfc16b230cf60761c Mon Sep 17 00:00:00 2001 From: Luc Boudreau Date: Mon, 6 Feb 2012 16:06:29 +0000 Subject: [PATCH] Fixes an issue with cache pass-through properties. The properties that are used to configure the XMLA cache shouldn't be added to the PropertyList of the XMLA payload. git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@499 c6a108a4-781c-0410-a6c6-c2d559e19af0 --- src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java b/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java index ce3a6be..ae8a138 100644 --- a/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java +++ b/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java @@ -316,6 +316,12 @@ static boolean acceptsURL(String url) { String makeConnectionPropertyList() { StringBuilder buf = new StringBuilder(); for (String prop : databaseProperties.keySet()) { + if (prop.startsWith( + XmlaOlap4jDriver.Property.CACHE.name())) + { + // Skip over the pass-through properties for the cache. + continue; + } try { XmlaOlap4jDriver.Property.valueOf(prop); continue;