Re: DatabaseMetaData.getTables()

Поиск
Список
Период
Сортировка
От Jason Davies
Тема Re: DatabaseMetaData.getTables()
Дата
Msg-id 20011028073339.B25513@netspade.com
обсуждение исходный текст
Ответ на Re: DatabaseMetaData.getTables()  ("Dave Cramer" <Dave@micro-automation.net>)
Ответы Re: DatabaseMetaData.getTables()
Список pgsql-jdbc
On Sun, Oct 28, 2001 at 07:14:42AM -0500, Dave Cramer wrote:
> It appears the getBytes was previously being used to return a byte array
> of any arbitrary column.
>
> Fixes for blobs seem to have broken this. The question is as Jason
> pointed out which do we fix.
>
> It doesn't seem unreasonable to be able to return a byte array for any
> arbitray column. On the other hand is this the intended use?

This is what the documentation says:

public byte[] getBytes(int columnIndex)
                throws SQLException

          Retrieves the value of the designated column in the current row
          of this ResultSet object as a byte array in the Java
          programming language. The bytes represent the raw values
          returned by the driver.

It seems to imply that it _should_ return a byte array for any arbitary column. But as usual, it's up to us to decide.
Ithink it's reasonable, since we are working with byte arrays in the code anyway. 

--
Jason Davies

jason@netspade.com

Вложения

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

Предыдущее
От: Jason Davies
Дата:
Сообщение: Re: DatabaseMetaData.getTables()
Следующее
От: "Dave Cramer"
Дата:
Сообщение: Re: DatabaseMetaData.getTables()