Hi,
I think I found a bug on the jdbc driver (or on the db) shipped with 7.8.02.21.
When EnableVariableOutput is YES, the following query returns an incorrect number of rows. Using an older JDBC driver, or setting the parameter to OFF returns the correct result.
select spedizione0_.ID as col_0_0_ from ECF3.SPEDIZIONE spedizione0_ left outer join ECF3.FATTURA fattura1_ on spedizione0_.ID_FATTURA=fattura1_.ID left outer join ECF3.FATTURA_RIGHE righe2_ on fattura1_.ID=righe2_.ID_FATTURA where spedizione0_.ID_CANALE=9 and spedizione0_.ID_PUNTOPARTENZA=1 and spedizione0_.ID_CORRIERE=1 and spedizione0_.DATA>='2012-04-01' and spedizione0_.DATA<='2012-04-30' group by spedizione0_.ID order by spedizione0_.DATA
removing
order by spedizione0_.DATA
always works whatever version of jdbc driver or setting of EnableVariableOutput parameter