Re: tightening up on use of oid 0 - Mailing list pgsql-jdbc

From Iain
Subject Re: tightening up on use of oid 0
Date
Msg-id 001901c4b112$e9c38890$7201a8c0@mst1x5r347kymb
Whole thread Raw
In response to tightening up on use of oid 0  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: tightening up on use of oid 0  (Oliver Jowett <oliver@opencloud.com>)
List 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 by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: tightening up on use of oid 0
Next
From: Tom Lane
Date:
Subject: Re: tightening up on use of oid 0