Jump to content
We've recently updated our Privacy Statement, available here ×

Long to be BigDecimal in Report Query


pttsui

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...