Re: tightening up on use of oid 0

Поиск
Список
Период
Сортировка
От Iain
Тема Re: tightening up on use of oid 0
Дата
Msg-id 001901c4b112$e9c38890$7201a8c0@mst1x5r347kymb
обсуждение исходный текст
Ответ на tightening up on use of oid 0  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: tightening up on use of oid 0  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Hi,

For my part, I've never used any of those calls.

FWIW, I always use reference objects such as "Integer" as opposed to "int"
so I've never done it that way. All calls to setObject or set<Anything>
would always use a variable which is typed (and may be null) my assumption
is that I avoid all such ambiguities that way.

regards
iain

> Kris Jurka wrote:

> General question for the list: how much code is out there that performs
> one of these (equivalent) calls?
>
>   PreparedStatement.setObject(i, null);
>   PreparedStatement.setObject(i, null, Types.OTHER);
>   PreparedStatement.setNull(i, Types.OTHER);
>


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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: tightening up on use of oid 0
Следующее
От: Tom Lane
Дата:
Сообщение: Re: tightening up on use of oid 0