Re: JDBC driver writes binary data ONLY as Large Object

Поиск
Список
Период
Сортировка
От Bill
Тема Re: JDBC driver writes binary data ONLY as Large Object
Дата
Msg-id 39887D0B.D9525DD1@cplane.com
обсуждение исходный текст
Ответ на RE: JDBC driver writes binary data ONLY as Large Obj ect  (Peter Mount <petermount@it.maidstone.gov.uk>)
Список pgsql-interfaces
Peter Mount wrote:

> The problem here is that there is no metadata available to check.
>
> If the backend was able to precompile the query, then we would know the
> column type, but as it stands currently there is no way of finding out what
> the column type is.
>
> Peter

Ok.  Suppose there was metadata available.  How would you
rewrite the function PreparedStatement.writeBytes() such that
it writes the bytes directly into the column?  Since that class
does everything through heavy use of String manipulation, I
can't see how to do it.  Is there a way?  I tried this:
 public void setBytes(int parameterIndex, byte x[]) throws SQLException {     set(parameterIndex, new String(x)); }

It barfed.

Bill





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

Предыдущее
От: "Joel Burton"
Дата:
Сообщение: Re: ODBC, Access and updates/deletes alter 0 rows!
Следующее
От: Chris Ryan
Дата:
Сообщение: PgSql ODBC + Coldfusion + Solaris