pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Herbert <Marc.Herbert@continuent.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: how to handle data containing '\0'
Date: Wed, 17 May 2006 15:13:03 +0200
Message-ID: <khjd5ecvlpc.fsf@meije.emic.fr> (raw)
References: <001f01c679a9$a3627350$360aa8c0@ipljp.local>

"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 sent to
> 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.





view thread (7+ messages)  latest in thread

Message-ID: <khjd5ecvlpc.fsf@meije.emic.fr>
Permalink:  ../khjd5ecvlpc.fsf@meije.emic.fr/
Also on:    postgresql.org/message-id/khjd5ecvlpc.fsf@meije.emic.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: Marc.Herbert@continuent.com
  Subject: Re: how to handle data containing '\0'
  In-Reply-To: <khjd5ecvlpc.fsf@meije.emic.fr>
  References: <001f01c679a9$a3627350$360aa8c0@ipljp.local> <khjd5ecvlpc.fsf@meije.emic.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox