Re: Aggregate function: Different results with jdbc and psql - Mailing list pgsql-jdbc

From Marc Mamin
Subject Re: Aggregate function: Different results with jdbc and psql
Date
Msg-id CA896D7906BF224F8A6D74A1B7E54AB3039E8BFB@JENMAIL01.ad.intershop.net
Whole thread Raw
In response to Re: Aggregate function: Different results with jdbc and psql  (Tilman Rassy <rassy@math.TU-Berlin.DE>)
List pgsql-jdbc
Can you try modify your SQL to explicitely  set the returned data type:


SELECT worksheet_id, user_id, num_edited, num_corrected, grade::float
FROM user_worksheet_grades
WHERE user_id = 23 AND worksheet_id = 105;


If this doesn't work too, than you can at least exclude a casting issue
...


cheers,

Marc

pgsql-jdbc by date:

Previous
From: Tilman Rassy
Date:
Subject: Re: Aggregate function: Different results with jdbc and psql
Next
From: Tilman Rassy
Date:
Subject: Re: Aggregate function: Different results with jdbc and psql