[#3123] - Error in Report Query with Long parameter default value expression

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

I have a query like this:

SELECT id, name, surname
FROM table T
WHERE T.id>=$P{FId} AND T.id><=$P{TId}

Parameters $P(FId) and $P(TId) are defined of class java.lang.Long and, if I set a Default Value Expression of 1 to either parameter, if a try to modify the query in the Report Query (only add a whitespace) i have the following error:

Error:General problem:java.lang.Integer cannot be cast to java.lang.LongCheck username and password; is DBMS active ?!

If I don't set any Default Value Expression to any Parameter, the error don't come up.

In version 4.1.2 this error doesn't exists.

v5.2
pacoom's picture
1
Joined: Mar 16 2010 - 2:58am
Last seen: 3 years 2 months ago
Feedback