Paranthesis and Driver JDBC

From: "Albert" <alberto(dot)molteni(at)libero(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Paranthesis and Driver JDBC
Date: 2007-03-28 12:02:57
Message-ID: 1175083377.613412.220790@e65g2000hsc.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all!

I use postgresql 8.0 and its driver for JDBC.A strange thing happens:
when my application creates a query it is created always with a
parenthesis more than expected, that is a query like this one:

SELECT * FROM table_x WHERE (table_x.afield='a' and
table_x.bfield='b')) order by table_x.a

This query is NOT executed using pgadmin, which detects the error, but
this does not happen in the application : the query isexecuted and the
correct resultis sent back by the database.

Is there some functionality in the driver that permits the correction
of this type of error? How could you explain this behaviour?

Thanks!

Alberto

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Burdairon 2007-03-28 12:28:01 Re: Paranthesis and Driver JDBC
Previous Message Dmitry Koterov 2007-03-28 10:12:43 Re: Strange behaviour under heavy load