Different query result in JasperSoft studio vs SQL Developer

Hi folks,

Here's a general question for you - why might a plsql query that produces a resultset in SQL developer produce the same result set but with all values as zero in JasperSoft Studio (and in the report it produces), as well as the report produced by a java app running the same report? They're both being run against the same database, so I expect the same figures.

e.g in sql developer

Some Column Value 1 Value 2 Value 3
This 99 41 18
That 13 1 93
Something else 23 23 35

in jaspersoft studio data preview and in generated report

Some Column Value 1 Value 2 Value 3
This 0 0 0
That 0 0 0
Something else 0 0 0


VillageIdiot's picture
Joined: Aug 10 2015 - 7:15am
Last seen: 7 years 9 months ago

And the same all-zero thing in the data preview window too, by the way.

VillageIdiot - 7 years 9 months ago

I reduced the query to one result line that I know has non-zero values in it and these display correctly in the data preview window. The first row of the full result set is all zeros so it looks like JasperStudio is using the first row results for all row output, although I cannot see why it would do this. The expressions in the table are just simple field references.

VillageIdiot - 7 years 9 months ago

OK, hands up, I'm an idiot! Updated the oracle driver, it works.

VillageIdiot - 7 years 9 months ago

0 Answers:

No answers yet