Skip to content

Commit

Permalink
Drillthrought MDX parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Jul 10, 2017
1 parent b4940b0 commit c58556c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LightPivotTable",
"author": "ZitRo",
"version": "1.8.4",
"version": "1.8.5",
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
"main": "test/testServer.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion source/js/MDXParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ MDXParser.prototype.drillDown = function (mdx, filter, expression) {
*/
MDXParser.prototype.drillThrough = function (basicMDX, filters) {

var cubeAndFilters = basicMDX.split(/(FROM\s*\[[^\]]*].*)/i)[1],
var cubeAndFilters = basicMDX.slice(basicMDX.lastIndexOf("FROM ")),
query = "DRILLTHROUGH SELECT " + cubeAndFilters;

for (var i in filters) {
Expand Down

0 comments on commit c58556c

Please sign in to comment.