[#2631] - Not possible to use custom query executor: bug in IReportCompiler

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

It is not possible to execute any custom query.

com.jaspersoft.ireport.designer.compiler.IReportCompiler.run() method contains the following code:
String queryLanguage = "sql";
JasperDesign jd = null;
try {
jd = JRXmlLoader.load(JRXML_FILE_NAME);
if (jd.getQuery() != null &&
jd.getQuery().getText() != null)
{
queryLanguage = jd.getQuery().getText();
}
} catch (Exception ex) { }

// Try to look for a good QueryExecutor...
List<QueryExecuterDef> configuredExecuters = IReportManager.getInstance().getQueryExecuters();
for (QueryExecuterDef qe : configuredExecuters)
{
if (qe.getLanguage().equals( queryLanguage ))
...

getQuery().getText() is called while getQuery().getLanguage() should be called.

v5.0
Custom Query Executors
relgames's picture
Joined: Dec 17 2012 - 7:10am
Last seen: 9 years 7 months ago
Feedback
randomness