From: Andrew Lazarus <drlaz@attglobal.net>
To: pgsql-jdbc@postgresql.org
Subject: PreparedStatement and setting an array is now broken
Date: Wed, 22 Dec 2004 14:06:26 -0800
Message-ID: <41C9EFE2.7030108@attglobal.net> (raw)
In-Reply-To: <41C9BF5D.9020809@gmx.ch>
References: <41C8934F.9060403@gmx.ch>
<Pine.BSO.4.56.0412211632270.19588@leary.csoft.net>
<41C9BF5D.9020809@gmx.ch>
Until version 8 (now using build 308), I used a prepared statement
INSERT INTO mytable(array_column) VALUES(?);
and
setString(1, my_formatter(java_array));
where my_formatter turns a Java double[] into a string in the form {1.0} .
This doesn't work any more, with the error message that character
varying can not be converted to real[] . I think it's with the driver,
because the braces form still works fine with psql. I changed the
formatter to produce a string in ARRAY[1.0] notation with the same error
message.
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: drlaz@attglobal.net
Subject: Re: PreparedStatement and setting an array is now broken
In-Reply-To: <41C9EFE2.7030108@attglobal.net>
References: <41C8934F.9060403@gmx.ch> <Pine.BSO.4.56.0412211632270.19588@leary.csoft.net> <41C9BF5D.9020809@gmx.ch> <41C9EFE2.7030108@attglobal.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