diff --git a/testsrc/org/olap4j/driver/xmla/cache/XmlaDatabaseCache.java b/testsrc/org/olap4j/driver/xmla/cache/XmlaDatabaseCache.java index adfb415..43be0c9 100644 --- a/testsrc/org/olap4j/driver/xmla/cache/XmlaDatabaseCache.java +++ b/testsrc/org/olap4j/driver/xmla/cache/XmlaDatabaseCache.java @@ -120,13 +120,11 @@ public byte[] get(String id, URL url, byte[] request) connection.prepareStatement( Properties.QUERY_SELECT.getValueOrDefault(props)); try { - stm.setString( - 1, - XmlaOlap4jShaEncoder.encodeSha1(new String(request))); + stm.setString(1, new String(request)); stm.execute(); ResultSet rs = stm.getResultSet(); if (rs.next()) { - return Base64.decode(rs.getString(2)); + return rs.getString(2).getBytes(); } else { return null; } @@ -149,10 +147,8 @@ public void put(String id, URL url, byte[] request, byte[] response) connection.prepareStatement( Properties.QUERY_INSERT.getValueOrDefault(props)); try { - stm.setString( - 1, - XmlaOlap4jShaEncoder.encodeSha1(new String(request))); - stm.setString(2, Base64.encodeBytes(response)); + stm.setString(1,new String(request)); + stm.setString(2, new String(response)); stm.execute(); } finally { stm.close(); diff --git a/xmla-cache/xmla-cache-hsqldb-mondrian-3.3-SNAPSHOT.zip b/xmla-cache/xmla-cache-hsqldb-mondrian-3.3-SNAPSHOT.zip index ad9946e..92ec5b2 100644 Binary files a/xmla-cache/xmla-cache-hsqldb-mondrian-3.3-SNAPSHOT.zip and b/xmla-cache/xmla-cache-hsqldb-mondrian-3.3-SNAPSHOT.zip differ