Jasperserver 6.3.0钻取视图会引发MySQL语法错误

时间:2016-10-26 13:22:31

标签: mysql jasperserver

之后我将我的jasperserver从5.6升级到6.3,我观察到了OLAP
  查看报告的钻取视图会导致MySQL语法错误。

这是错误

select `sales_territories`.`country_name` as `Country`, 
`sales_territories`.`territory_name` as `Territory`, `lob`.`lob_name` as 
`LOB`, `lob`.`sublob_name` as `Sub_LOB`, `customers`.`cust_name` as 
`Customer`, `customers`.`industry` as `Domain`, 
`project_bill_loc`.`pbl_name` as `Bill_Location`, `projects`.`project_name` 
as `Project`, `resources`.`resource_name` as `resnames`, 
`res_lvl`.`level_code` as `code`, `res_lvl`.`level_name` as `name`, 
`res_type`.`type_name` as `type`, `date_hierarchies`.`year` as `Year`, 
`date_hierarchies`.`quarter` as `Quarter`, `date_hierarchies`.`month` as 
`Month`, `facts_financials`.`m_rev` as `Reve from    
`olap_cubes`.`sales_territories` as `sales_territories`,   
`olap_cubes`.`facts_financials` as `facts_financials`, `olap_cubes`.`lob` as 
`lob`, `olap_cubes`.`customers` as `customers`, 
`olap_cubes`.`project_bill_loc` as `project_bill_loc`, 
`olap_cubes`.`projects` as `projects`, `olap_cubes`.`resources` as 
`resources`, 
`olap_cubes`.`res_lvl` as `res_lvl`, `olap_cubes`.`res_type` as `res_type`, 
`date_hierarchies` as `date_hierarchies` where `facts_financials`.`d_slter` 
= `sales_territories`.`id` and `facts_financials`.`d_lob` = `lob`.`id` and 
`lob`.`lob_name` = 'AS' and `facts_financials`.`d_cust` = `customers`.`id` 
and `customers`.`cust_name` = 'American Financial Resources, Inc.' and  
`facts_financials`.`d_pbl` = `project_bill_loc`.`id` and 
`facts_financials`.`d_prj` = `projects`.`id` and `projects`.`project_name` = 
'American Financial Resources: AFR B2B Sales Portal (P007725)' and 
`facts_financials`.`d_res` = `resources`.`id` and 
`facts_financials`.`d_reslvl` = `res_lvl`.`id` and 
`facts_financials`.`d_restype` = `res_type`.`id` and 
`facts_financials`.`date_id` = `date_hierarchies`.`id` and 
`date_hierarchies`.`year` = 2017 and `date_hierarchies`.`quarter` = DATE 
'2016-04-01' order by `sales_territories`.`country_name` ASC, 
`sales_territories`.`territory_name` ASC, `lob`.`lob_name` ASC, 
`lob`.`sublob_name` ASC, `customers`.`cust_name` ASC, `customers`.`industry` 
 ASC, `project_bill_loc`.`pbl_name` ASC, `projects`.`project_name` ASC, 
 `resources`.`resource_name` ASC, `res_lvl`.`level_code` ASC, 
`res_lvl`.`level_name` ASC, `res_type`.`type_name` ASC, 
`date_hierarchies`.`year` ASC, `date_hierarchies`.`quarter` ASC, 
`date_hierarchies`.`month` ASC 

提前致谢

1 个答案:

答案 0 :(得分:1)

注释

mondrian.rolap.generate.formatted.sql=true in /WEB-INF/classes/mondrain.properties