Re: create BLOB question

From: Jeremiah Jahn <jeremiah(at)cs(dot)earlham(dot)edu>
To: David Wall <d(dot)wall(at)computer(dot)org>
Cc: postgres jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: create BLOB question
Date: 2003-02-11 15:37:22
Message-ID: 1044977840.1851.611.camel@bluejay.goodinassociates.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I'm writing the BLOB wrapper.

3 methods have ambiguous implementations.

public java.io.OutputStream setBinaryStream(long pos) throws SQLException{
}
public int setBytes(long pos,byte[] bytes) throws SQLException{
}
public int setBytes(long pos,byte[] bytes,int offset,int len) throws SQLException{
}

If I already have an array of data. An I start writing to it at position
pos, does it overwrite the old data or insert into the array at that
point and move the old data down toward the end?

On Mon, 2003-02-10 at 17:54, David Wall wrote:
> > So does setBytes() insert or overwrite the data starting at a position?
>
> What setBytes() are you referring to? For bytea columns, I believe it can
> be used in an insert and update just fine, but it's always assumed to work
> on the entire array, starting at position 0.
>
> David
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Jeremiah Jahn <jeremiah(at)cs(dot)earlham(dot)edu>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2003-02-11 16:42:20 Re: create BLOB question
Previous Message GB Clark 2003-02-11 14:56:38 Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --