pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gautham S. Rao <gautam.rao@tatainfotech.com>
To: Dave Cramer <Dave@micro-automation.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC Driver Problem
Date: Tue, 9 Apr 2002 09:07:03 +0530
Message-ID: <004201c1df77$d0b946b0$41057aa3@tatainfotech.com> (raw)
References: <NEBBLAAHGLEEPCGOBHDGKEDNELAA.nickf@ontko.com>
	<005701c1dc58$65f7b590$41057aa 3@tatainfotech.com>
	<24564.1018022998@sss.pgh.pa.us>
	<1018025572.20047.62.camel@inspiron.cramers>
	<01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com>
	<1018310506.2899.18.camel@inspiron.cramers>

Hi Dave,

The problem was not beacuse of the JDBC driver at all. In the query we had
some parameters in the where clause that had to be replaced with the actual
values during runtime. This piece of code was written in Java and the
replacement logic was not handled properly. Only the first occurance of the
parameter was getting replaced. The logic has now been changed to handle
such situations also.

Regards,
Gautham.

----- Original Message -----
From: "Dave Cramer" <Dave@micro-automation.net>
To: "Gautham S. Rao" <gautam.rao@tatainfotech.com>
Cc: "Tom Lane" <tgl@sss.pgh.pa.us>; <pgsql-jdbc@postgresql.org>
Sent: Tuesday, April 09, 2002 5:31 AM
Subject: Re: [JDBC] JDBC Driver Problem


> 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" <Dave@micro-automation.net>
> > To: "Tom Lane" <tgl@sss.pgh.pa.us>
> > Cc: "Gautham S. Rao" <gautam.rao@tatainfotech.com>;
> > <pgsql-jdbc@postgresql.org>
> > 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" <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
> > > >
> > > > ---------------------------(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
> > >
> >
> >
>
>




view thread (16+ messages)  latest in thread

Message-ID: <004201c1df77$d0b946b0$41057aa3@tatainfotech.com>
Permalink:  ../004201c1df77$d0b946b0$41057aa3@tatainfotech.com/
Also on:    postgresql.org/message-id/004201c1df77$d0b946b0$41057aa3@tatainfotech.com

 · 

reply

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: gautam.rao@tatainfotech.com, Dave@micro-automation.net
  Subject: Re: JDBC Driver Problem
  In-Reply-To: <004201c1df77$d0b946b0$41057aa3@tatainfotech.com>
  References: <NEBBLAAHGLEEPCGOBHDGKEDNELAA.nickf@ontko.com> <24564.1018022998@sss.pgh.pa.us> <1018025572.20047.62.camel@inspiron.cramers> <01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com> <1018310506.2899.18.camel@inspiron.cramers> <004201c1df77$d0b946b0$41057aa3@tatainfotech.com>

* 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