PreparedStatement.setXXX

Поиск
Список
Период
Сортировка
От Roberta Campo
Тема PreparedStatement.setXXX
Дата
Msg-id dbg5ba$2g9c$3@news.hub.org
обсуждение исходный текст
Ответы Re: PreparedStatement.setXXX  (Dave Cramer <pg@fastcrypt.com>)
Re: PreparedStatement.setXXX  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
We're moving from Postgresql7.4 to v.8.0.3,
with some problems rising from the strictness of the new driver
postgresql-8.0-311.jdbc3.jar.

We used to call a function f(integer[]) using
PreparedStatement.setString('{...}')
but now the types are not compatible.


How should we fix that ?

A. Using the setArray method :
This requires the implementation of the interface java.sql.Array :
- which methods are required in this case ?
- is there any available implementation of this class ? :)

B. Using the setObject(colnumber, String, type ) method :
This should require less implementation than the Array, shouldn't it ?
- how to specify the type int[] ?

C. Using different drivers / protocol versions / ...

 Thanks,
Roberta



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: patch to fix jdk 2 compile errors and v2 compatability
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Timezone conversion woes