Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id DBF4547585D for ; Mon, 8 Apr 2002 20:03:18 -0400 (EDT) Received: (qmail 26454 invoked from network); 9 Apr 2002 00:03:19 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.123.128?) (64.7.143.116) by net2.micro-automation.com with SMTP; 9 Apr 2002 00:03:19 -0000 Subject: Re: JDBC Driver Problem From: Dave Cramer To: "Gautham S. Rao" Cc: Tom Lane , "pgsql-jdbc@postgresql.org" In-Reply-To: <01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com> References: <005701c1dc58$65f7b590$41057aa 3@tatainfotech.com> <24564.1018022998@sss.pgh.pa.us> <1018025572.20047.62.camel@inspiron.cramers> <01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 (1.0.2-3) Date: 08 Apr 2002 20:01:46 -0400 Message-Id: <1018310506.2899.18.camel@inspiron.cramers> Mime-Version: 1.0 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Archive-Number: 200204/47 X-Sequence-Number: 3633 Gautham, So what was the solution? Is the driver broken? Did you work around the problem? Dave On Mon, 2002-04-08 at 08:01, Gautham S. Rao wrote: > 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 > > > >