Re: JDBC driver writes binary data ONLY as Large Object
В списке pgsql-interfaces по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера