X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 198683ABDF0 for ; Wed, 22 Dec 2004 22:00:14 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55315-08 for ; Wed, 22 Dec 2004 21:59:57 +0000 (GMT) Received: from pillette.com (adsl-67-119-5-202.dsl.snfc21.pacbell.net [67.119.5.202]) by svr1.postgresql.org (Postfix) with ESMTP id 9748F3ABE9A for ; Wed, 22 Dec 2004 21:59:57 +0000 (GMT) Received: from [192.168.1.200] (dhcp200.pillette.com [192.168.1.200]) by pillette.com (8.11.6/8.11.6) with ESMTP id iBMLxtp13159 for ; Wed, 22 Dec 2004 13:59:55 -0800 Message-ID: <41C9EFE2.7030108@attglobal.net> Date: Wed, 22 Dec 2004 14:06:26 -0800 From: Andrew Lazarus Reply-To: drlaz@attglobal.net User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: PreparedStatement and setting an array is now broken References: <41C8934F.9060403@gmx.ch> <41C9BF5D.9020809@gmx.ch> In-Reply-To: <41C9BF5D.9020809@gmx.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/171 X-Sequence-Number: 11837 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.