Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT
Дата
Msg-id 43A903BE.3060405@opencloud.com
обсуждение исходный текст
Ответ на Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Oliver Jowett wrote:
> Oliver Jowett wrote:
>
>> or (nonstandard):
>>
>>   INSERT INTO foo(bit_val) VALUES (?::bit(5))
>
>
> Actually, this doesn't appear to work. The CAST variant works fine, use
> that instead.

Bah, I'm really not having much luck with sending email before I've
completely checked things today, sorry about all the individual
corrections :/

CAST doesn't work either -- it seems there is no explicit cast from
varchar to bit(n) at all.

So you can either mess with input functions directly, or write a custom
PGobject type, or turn on string autocasting.

-O

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Bug: Driver(8.2dev-500.jdbc3) does not handle boolean->BIT
Следующее
От: Roland Walter
Дата:
Сообщение: Re: Feature request for setting the role with the URL