Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id BADA5475AA2 for ; Fri, 5 Apr 2002 11:10:00 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g35G9xF24567; Fri, 5 Apr 2002 11:09:59 -0500 (EST) To: "Gautham S. Rao" Cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC Driver Problem In-reply-to: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> References: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> Comments: In-reply-to "Gautham S. Rao" message dated "Fri, 05 Apr 2002 09:44:36 +0530" Date: Fri, 05 Apr 2002 11:09:58 -0500 Message-ID: <24564.1018022998@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/34 X-Sequence-Number: 3620 "Gautham S. Rao" 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