Re: stringtype=unspecified problem

Поиск
Список
Период
Сортировка
Искать
От
Chris Gamache
Тема
Re: stringtype=unspecified problem
Дата
Msg-id
9cc55f600702150612p72490c3by95f5998541cf9932@mail.gmail.com
Ответ на
Список
Дерево обсуждения
stringtype=unspecified problem "Chris Gamache" <cgamache@gmail.com>
Re: stringtype=unspecified problem Oliver Jowett <oliver@opencloud.com>
Re: stringtype=unspecified problem "Chris Gamache" <cgamache@gmail.com>
Re: stringtype=unspecified problem Kris Jurka <books@ejurka.com>
Re: stringtype=unspecified problem "Chris Gamache" <cgamache@gmail.com>
Re: stringtype=unspecified problem Kris Jurka <books@ejurka.com>
On 2/14/07, Kris Jurka  wrote:
> Here you're explicitly saying that it is a VARCHAR, not that you have a
> String that you're not sure what the real type is.  It would be possible
> to adjust setNull to check the stringtype setting and use Oid.UNSPECIFIED
> here, but I'm not sure that would be correct.

We've been batting this around in the office as well. I wish I knew
what the absolute correct behavior would be in this situation.

An observation that might be insightful is if I can figure out how

setString(1,null);

differs from

setNull(1,java.sql.Types.VARCHAR);

...

When connected using stringtype=unspecified it would seem to me that
the two should behave the same way. What do you think?
В списке pgsql-jdbc по дате отправления
От: Albe Laurenz
Дата:
От: Kris Jurka
Дата:
FAQ