From: Kris Jurka <books@ejurka.com>
To: Tore Halset <halset@pvv.ntnu.no>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: setBlob/getBlob, slony and bytea
Date: Fri, 1 Dec 2006 09:04:30 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0612010858570.22186@leary2.csoft.net> (raw)
In-Reply-To: <B0F1EB43-2349-49A5-B3E0-61D36D5CBB85@pvv.ntnu.no>
References: <B0F1EB43-2349-49A5-B3E0-61D36D5CBB85@pvv.ntnu.no>
On Fri, 1 Dec 2006, Tore Halset wrote:
> After the switch to bytea setBlob and getBlob are not working anymore. Can
> this be fixed in the driver or do I need to detect if the blob in the
> database are oid or bytea before deciding if I should use setBlob or
> setBytes?
>
The driver could provide a wrapper that work for getBytes, but setBytes is
trickier because the driver doesn't know what data type the value will be
assigned to, it just fires away the data and hopes for the best.
This was previously discussed in this thread:
http://archives.postgresql.org/pgsql-jdbc/2005-01/thrd2.php#00029
Kris Jurka
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: books@ejurka.com, halset@pvv.ntnu.no
Subject: Re: setBlob/getBlob, slony and bytea
In-Reply-To: <Pine.BSO.4.64.0612010858570.22186@leary2.csoft.net>
References: <B0F1EB43-2349-49A5-B3E0-61D36D5CBB85@pvv.ntnu.no> <Pine.BSO.4.64.0612010858570.22186@leary2.csoft.net>
* 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