Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 899642E029F for ; Fri, 30 Nov 2007 13:43:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 42190-06 for ; Fri, 30 Nov 2007 13:43:06 -0400 (AST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 5134B2E0290 for ; Fri, 30 Nov 2007 13:43:07 -0400 (AST) Received: (qmail 4349 invoked by uid 0); 30 Nov 2007 17:43:05 -0000 Received: from 84.75.81.190 by www172.gmx.net with HTTP; Fri, 30 Nov 2007 18:43:04 +0100 (CET) Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset="us-ascii" Date: Fri, 30 Nov 2007 18:43:05 +0100 From: "Christian Kindler" In-Reply-To: <77FD84BA-A86E-4037-9735-115CF1A077B4@fastcrypt.com> Message-ID: <20071130174305.288040@gmx.net> MIME-Version: 1.0 References: <20071130140744.141200@gmx.net> <77FD84BA-A86E-4037-9735-115CF1A077B4@fastcrypt.com> Subject: Re: prepared statement using postgres array To: Dave Cramer X-Authenticated: #27759442 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX19he9YCpwVh++JVuXfHD3Z0SfTAXptxk+v2MnAxzN JbX0CxXPBaQfRZNOKAErywCb7j37vdIfL5/g== Content-Transfer-Encoding: 7bit X-GMX-UID: kXlpcr89eWUoTDry1HRzpGcxU3U4N88a X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.025 tagged_above=0 required=5 tests=AWL=0.210, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 200711/100 X-Sequence-Number: 17855 Hi Dave > you have to implement the java.sql.Array hmmm ... i have tried to find a sample implementation of the interface, but no success. I am sure this is a ugly solution but I figures out a workaround: INSERT INTO Quote(fi_id, market_id, "date", "time", "open", high, low, "close", vol, oi, bid, bidvol, ask, askvol, last, sysstatus, buyers, buyersvol, sellers, sellersvol, additional) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, (select string_to_array(?, ',')::float[]), (select string_to_array(?, ',')::float[]), (select string_to_array(?, ',')::float[]), (select string_to_array(?, ',')::float[]), (select string_to_array(?, ',')::float[]) ); ... as is said not pretty but it works for the moment ... Thanks! Christian PS But it still will be cool if anybody could provide me a sample snipped implementing java.sql.Array -- cu Chris Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser