pttsui Posted May 18, 2011 Share Posted May 18, 2011 Hi all, I am connecting using iReport connecting to a MS SQL Server.I have a table column of bigInt and when I am selecting it through a sQL in the "Report Query". HOwever, the Field Type retrieved becomes java.math.BigDecimal, which I expected to be java.lang.Long. Any clues of the wrong data type detection? Link to comment Share on other sites More sharing options...
gail26 Posted May 19, 2011 Share Posted May 19, 2011 From Report Inspector window click the Field you want to change to BigDecimal>Its property will show to property window, right side of your window, change the field class to java.mat.BigDecimal Link to comment Share on other sites More sharing options...
pttsui Posted May 19, 2011 Author Share Posted May 19, 2011 Thanks for your reply. I know your solution and it's what we're doing now. However, it's rather annoying to modify the parameters everytime the SQL is updated. Btw, I find that my colleaque doesn't has the same problem. They get Long from the SQL; whereas I get BigDecimal. We are installing from the same package and cannot explain the difference. Link to comment Share on other sites More sharing options...
mdahlman Posted May 19, 2011 Share Posted May 19, 2011 One mitigating item is to turn off the auto-refresh feature in the SQL window. I hate that thing. Then the fields only get updated when you want to update them.The underlying cause is the JDBC driver. The driver reports the data types and iReport just displays them. I suspect that your colleague is using a different driver (or connecting to a different database).Regards,Matt Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now