2016-10-26 8 views
-2

その後、jasperserverを5.6から6.3にアップグレードしたところ、OLAP
ビューレポートのドリルスルービューでMySQL構文エラーが発生することがわかりました。ここでJasperserver 6.3.0ドリルスルービューで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

恐ろしいフォーマットです。問題を読みやすく、再現性があり、わかりやすいものに絞り込んでください... phpMyAdminに文を入れて、動作しない部分に来るまで動作するものをすべて削除してください。 – DanFromGermany

+0

@venkyMCA質問でエラーが発生しました –

+0

こんにちはDanさんからのお返事ありがとうございます。私は以前から ""マークが見つからなかったことを確認しました – venkyMCA

答えて

1

コメント

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

plzはあなたの答えを明確にし、読みやすいようにフォーマットします。 – Zeina

+1

実際、私は新しいユーザーです。私は上記の質問にコメントするほどの評判はありません。私は答えとして追加しました。 –

+0

**/WEB-INF/classes/mondrain.properties **の 'mondrian.rolap.generate.formatted.sql = true'のコメントは、問題の修正に役立ちました。 –

関連する問題