Re: TypeInfoCache

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: TypeInfoCache
Дата
Msg-id 476D8189.4030003@opencloud.com
обсуждение исходный текст
Ответ на Re: TypeInfoCache  (dmp <danap@ttc-cmc.net>)
Список pgsql-jdbc
dmp wrote:

> I would rather not have to CAST or import non-standard types which are not
> defined in the Sun JDBC. If you wish to have them at least make the driver
> except a generic string setter method like the getter.

You can now do this in CVS HEAD by using setObject(n, someStringObject,
Types.OTHER). Or you can enable it globally for all strings by using
"stringtype=unspecified" at the cost of less type safety (which I
wouldn't recommend)

Normally the meaning of setString() is pretty explicit, though - it says
that you want the target type to be text or varchar. If the underlying
database type is something different, I don't think it's unreasonable to
require you to either use a different method, or put a cast in your query.

-O


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

Предыдущее
От: dmp
Дата:
Сообщение: Re: TypeInfoCache
Следующее
От: Christian Schröder
Дата:
Сообщение: Re: Missing fields in getColumns() result