Re: create BLOB question

Поиск
Список
Период
Сортировка
От Jeremiah Jahn
Тема Re: create BLOB question
Дата
Msg-id 1044977840.1851.611.camel@bluejay.goodinassociates.com
обсуждение исходный текст
Ответ на Re: create BLOB question  ("David Wall" <d.wall@computer.org>)
Ответы Re: create BLOB question
Список 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@cs.earlham.edu>


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

Предыдущее
От: GB Clark
Дата:
Сообщение: Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --
Следующее
От: Barry Lind
Дата:
Сообщение: Re: create BLOB question