X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id EE73B9DD449 for ; Fri, 2 Dec 2005 05:42:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 21467-01 for ; Fri, 2 Dec 2005 05:42:39 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.197]) by postgresql.org (Postfix) with ESMTP id ECFF69DD43F for ; Fri, 2 Dec 2005 05:42:39 -0400 (AST) Received: by nproxy.gmail.com with SMTP id k26so176881nfc for ; Fri, 02 Dec 2005 01:42:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:organization:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=cVT2nY8newl5Y5TOd7edxvuaQ+9GxavRqEbncsfiMacw6sfqkdv9z9tUQDrOVH+q4Lj1z1r9Dh/w/6u8F61SBWkqsvtSZZwFtuQkmwQpH1QubIxWe6lBJTRT9MEYrAVcHI7mcDKWL178NApki4VbYpegkpbmdlBjKU6BCS3+tFQ= Received: by 10.48.255.20 with SMTP id c20mr556711nfi; Fri, 02 Dec 2005 01:42:41 -0800 (PST) Received: from aditatu.atlantic.ro ( [82.76.194.145]) by mx.gmail.com with ESMTP id p43sm559938nfa.2005.12.02.01.42.38; Fri, 02 Dec 2005 01:42:39 -0800 (PST) From: NosyMan To: pgsql-jdbc@postgresql.org Subject: jdbc and ARRAYs Date: Fri, 2 Dec 2005 11:42:38 +0200 User-Agent: KMail/1.9 Organization: Noscom MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512021142.38982.nosyman@gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/8 X-Sequence-Number: 14339 Hi everyone, I have some problems trying to use a preparedStatement with an array parameter. The problem is I don't know how to do it :-( CREATE OR REPLACE FUNCTION MyFunction( id INTEGER, anArray VARCHAR[] ).......................... pstat = conn.prepareStatement("SELECT * FROM MyFunction(?,?)"); pstat.setInt(1, 30); pstat.setArray(2, ??????????); Can you tell me how can I construct the array for parameter number 2? Thanks, NosyMan