PreparedStatement.setBytes on OIDs

From: Bill Schneider <bschneider(at)vecna(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: PreparedStatement.setBytes on OIDs
Date: 2003-02-03 05:12:09
Message-ID: 016901c2cb42$cdc0f450$6601a8c0@complexity
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Is there any way it is possible to make AbstractJdbc1Statement.setBytes work
on both bytea and oid columns? I found the "compatible" switch to revert
behavior so that the method can be used with oid columns, but I'd hate to
give up the bytea functionality to keep setBytes working with oids. IMO
there should be some way to get setBytes to work on both simultaneously.

What are other users' thoughts on this? Is this something that could be
solved with a small patch or would this feature require a significant
redesign of the driver?

-- Bill

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message etsuko shimabukuro 2003-02-03 06:39:01 How do I capture the message from user defined function
Previous Message Bruce Momjian 2003-02-03 01:06:00 Re: Coding style