use of OID.Unknown

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема use of OID.Unknown
Дата
Msg-id A9FB7703-8451-4B03-AC70-178F793DF78E@fastcrypt.com
обсуждение исходный текст
Ответы Re: use of OID.Unknown  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: use of OID.Unknown  (Kris Jurka <books@ejurka.com>)
Re: use of OID.Unknown  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Before we cut an 8.1 stable release, I'd like to revisit the use of
unknown for strings at a minimum.

Currently the driver exhibits some non-intuitive behaviour.

1) Not using indexes unless the correct type is bound to the
parameter ( this is intuitive as I write it but many users get
tripped up ). I'm not sure using unknown for strings would help here
but the other option is using unknown for everything and let the
backend decide what type to use. This may be an option if we only do
this when prepareThreshold is 0 since we assume that we won't be
caching plans anyway.

2) We have broken backward compatibility by changing the behaviour of
setString.

At a minimum I'd propose we bind strings to unknown.

For or against ?

Dave

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

Предыдущее
От: Nelson Arape
Дата:
Сообщение: Re: Batch with keygen?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: use of OID.Unknown