Re: how to handle data containing '\0'

Поиск
Список
Период
Сортировка
От Marc Herbert
Тема Re: how to handle data containing '\0'
Дата
Msg-id khjd5ecvlpc.fsf@meije.emic.fr
обсуждение исходный текст
Ответ на how to handle data containing '\0'  ("EBIHARA, Yuichiro" <ebihara@iplocks.co.jp>)
Список pgsql-jdbc
"EBIHARA, Yuichiro" <ebihara@iplocks.co.jp> writes:

>
> I need to handle String data containing '\0' in my Java + JDBC program. Such data can happen at other systems and be
sentto 
> PostgreSQL. Here is a sample to simulate it in Java code.

As far as I know, it is not possible to store such strings in a
postgreSQL database (whatever the client interface used). The reason
seems to be that postgreSQL is written in C, and most C functions use
\0 as a string terminator.


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

Предыдущее
От: "EBIHARA, Yuichiro"
Дата:
Сообщение: how to handle data containing '\0'
Следующее
От: "Larry Rosenman"
Дата:
Сообщение: Re: how to handle data containing '\0'