Re: updateBlob()-example?

From: Kris Jurka <books(at)ejurka(dot)com>
To: Guido Fiala <guido(dot)fiala(at)dka-gmbh(dot)de>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: updateBlob()-example?
Date: 2004-02-12 09:52:12
Message-ID: Pine.LNX.4.33.0402120448480.5286-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 12 Feb 2004, Guido Fiala wrote:

> Am Donnerstag, 12. Februar 2004 10:05 schrieb Kris Jurka:
> > pass compatible=7.1 as a URL parameter
>
> How do i specify that paramter in the URL?
>

Something like:

jdbc:postgresql://localhost:5432/mydatabase?compatible=7.1

> > Could you be more clear on what you want to do and where it is failing?
>
> I tried using rs.updateBytes() and using bytea datatype and writing seems to
> work now.
> But if the data are read back using getBytes() the RTF-Editorkit mourns about
> "to many closed brackets", but that might not be a problem of JDBC, still
> tracking it down.
>

There is a bug in the server where it tries to do character set conversion
on bytea data. If your database is not in UNICODE encoding this may be
the issue. Using unicode or large objects will avoid this problem.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Gary Quinn 2004-02-12 14:21:32 unsubscribe
Previous Message Guido Fiala 2004-02-12 09:37:08 Re: updateBlob()-example?