Automatic cast

Поиск
Список
Период
Сортировка
От Alexandre de Arruda Paes
Тема Automatic cast
Дата
Msg-id fe86db180605181511y1980e6f0x74d77d519b5201d5@mail.gmail.com
обсуждение исходный текст
Ответы Re: Automatic cast  (Kris Jurka <books@ejurka.com>)
Список 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 по дате отправления:

Предыдущее
От: Bakos Sandor
Дата:
Сообщение: Re: connection time out
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Automatic cast