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 007101c4b195$b911a000$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
List pgsql-jdbc
Hi Oliver,

Just out of interest, is the case you marked,

>   setObject(i, (Integer)null);     // (*)

equivalent to

    Integer someInteger = null;
    setObject(i, someInteger);

?

From what I remember of my code I'd be surprised if I was doing either as
this case would use setInt instead of setObject. I don't think I use
setObject anywhere.

I would ask the question then, is there any situation where there is no
alternative to the insufficiantly typed calls you listed? From my limited
view of the situation, my feeling is that there isn't, so I would say that
such calls should produce errors rather than some kind of default behavour.

Cheers
Iain


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: FW: Question about the postgres resultset implementation
Next
From: Oliver Jowett
Date:
Subject: Re: tightening up on use of oid 0