Re: Aggregate function: Different results with jdbc and psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tilman Rassy <rassy(at)math(dot)TU-Berlin(dot)DE>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Aggregate function: Different results with jdbc and psql
Date: 2008-10-07 12:21:01
Message-ID: 12441.1223382061@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Tilman Rassy <rassy(at)math(dot)TU-Berlin(dot)DE> writes:
> I have the following problem: A certain query, i.e.,
> ...
> when I issue it in psql. When I use the same query from JDBC in Java, the
> column "grade" is SQL NULL.

It's hard to believe it's really the "same" query in both cases. Maybe
you're using parameters in the JDBC case and they're not quite right?
Maybe the Java user has a different search_path or something?

regards, tom lane

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tilman Rassy 2008-10-07 12:30:40 Re: Aggregate function: Different results with jdbc and psql
Previous Message Guillaume Cottenceau 2008-10-07 12:01:56 Re: Aggregate function: Different results with jdbc and psql