Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by postgresql.org (Postfix) with ESMTP id 1578A474E78 for ; Mon, 8 Apr 2002 07:44:32 -0400 (EDT) Received: from blrmail.in.tatainfotech.com (IDENT:root@localhost [127.0.0.1]) by brelay.tatainfotech.com (8.11.0/8.11.0) with ESMTP id g38Bjx618562; Mon, 8 Apr 2002 17:16:03 +0530 Received: from dsspntw34 ([163.122.5.65]) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with SMTP id RAA30558; Mon, 8 Apr 2002 17:16:35 +0530 Message-ID: <01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com> From: "Gautham S. Rao" To: "Dave Cramer" , "Tom Lane" Cc: References: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> <24564.1018022998@sss.pgh.pa.us> <1018025572.20047.62.camel@inspiron.cramers> Subject: Re: JDBC Driver Problem Date: Mon, 8 Apr 2002 17:31:54 +0530 Organization: Tata Infotech Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200204/45 X-Sequence-Number: 3631 Hi Dave/Tom, Thanks very much for the suggestion. The problem was beacuse the paramaters in the where clause were not getting replaced with the actual values. This I could figure out from the log and have corrected the logic to handle it properly. Now the queries are working fine. Thanks & Regards, Gautham ----- Original Message ----- From: "Dave Cramer" To: "Tom Lane" Cc: "Gautham S. Rao" ; Sent: Friday, April 05, 2002 10:22 PM Subject: Re: [JDBC] JDBC Driver Problem > This would be my guess too. It would make sense that the code that is > checking for escape sequences is broken > > Dave > > On Fri, 2002-04-05 at 11:09, Tom Lane wrote: > > "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 > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 6: Have you searched our list archives? > > > > http://archives.postgresql.org > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org >