Automatic cast - Mailing list pgsql-jdbc

From Alexandre de Arruda Paes
Subject Automatic cast
Date
Msg-id fe86db180605181511y1980e6f0x74d77d519b5201d5@mail.gmail.com
Whole thread Raw
Responses Re: Automatic cast
List pgsql-jdbc
Hi,

I have a problem and I want know if this can be solved in the jdbc driver.
Our company develop softwares  using a CASE Tool caled Genexus. The
SQL sintaxe are not changeable and they have a big problem: the querys
aren't casted.

SELECT field from table where field=10

If the field are int2 or int8, PostgreSQL don't use indexes (its
converts the value 10 to int4).
Can I put an implicit (automatic) cast (' ' - apostrofes)  in the SQL
sintaxes passed throught JDBC ???

Thanks and sorry if this is a stupid question ... :)

pgsql-jdbc by date:

Previous
From: Bakos Sandor
Date:
Subject: Re: connection time out
Next
From: Kris Jurka
Date:
Subject: Re: Automatic cast