From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gautham S. Rao <gautam.rao@tatainfotech.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC Driver Problem
Date: Fri, 05 Apr 2002 11:09:58 -0500
Message-ID: <24564.1018022998@sss.pgh.pa.us> (raw)
In-Reply-To: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com>
References: <NEBBLAAHGLEEPCGOBHDGKEDNELAA.nickf@ontko.com>
<005701c1dc58$65f7b590$41057aa3@tatainfotech.com>
"Gautham S. Rao" <gautam.rao@tatainfotech.com> writes:
> This query returns 4 records when executed from the back end which is the
> desired result. But when it is executed using the JDBC driver for postgreSQL
> 7.1 and JDK 1.2, it returns only 3 records. This is the result of the first
> query excluding the union. So it appears as if only the first part of the
> query is working through the JDBC driver.
Could the driver be dropping part of the query? I suggest turning on
query logging at the backend (restart postmaster with -d2 switch, or
set debug_print_query = true in postgresql.conf) and then look in the
postmaster log to see exactly what query is being sent by JDBC.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, gautam.rao@tatainfotech.com
Subject: Re: JDBC Driver Problem
In-Reply-To: <24564.1018022998@sss.pgh.pa.us>
References: <NEBBLAAHGLEEPCGOBHDGKEDNELAA.nickf@ontko.com> <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> <24564.1018022998@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox