Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 16D839FB223 for ; Mon, 8 Jan 2007 13:24:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 13264-01 for ; Mon, 8 Jan 2007 13:24:45 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by postgresql.org (Postfix) with ESMTP id 0EF0B9FB21D for ; Mon, 8 Jan 2007 13:24:45 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id i31so115737wra for ; Mon, 08 Jan 2007 09:24:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=VSukf116uIAzzCIadScf1azd6tcrpaXgSToIV4I13DIfcDQnvGsZSxJ0zwC20JkcqfksYepl8tmVv2q4YvchY6+FwnGllMrpdrYCEPUY9DBI0dWVsFumq3t2JZTUuG9TJHzvTb1w9eq2jy2td6HHgIsg4LPwGfoONIdUwI9Ka1Q= Received: by 10.90.100.2 with SMTP id x2mr2338793agb.1168277085574; Mon, 08 Jan 2007 09:24:45 -0800 (PST) Received: by 10.90.75.12 with HTTP; Mon, 8 Jan 2007 09:24:44 -0800 (PST) Message-ID: <17eca7f50701080924h2faa6286yfc9b7758a69a3f0@mail.gmail.com> Date: Mon, 8 Jan 2007 11:24:45 -0600 From: "Jeremiah Elliott" To: pgsql-sql@postgresql.org Subject: Help with Array MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/14 X-Sequence-Number: 27166 I have a java application that moves data from our erp platform (progress) into a Postgres database. One of the fields in progress is a character array. I haven't had any luck getting this field to transfer. What I would like to do is something like: .... preparedStatement.setArray(i,resultSet.getArray(i)); .... however this throws java.lang.UnsupportedOperationException I have tried several other ways, with no luck. ... preparedStatement.setObject(i,resultSet.getObject(i)); ... throws java.sql.SQLException: ERROR: column "so_slspsn" is of type character varying[] but expression is of type character varying and ... preparedStatement.setObject(i,resultSet.getObject(i),2003); ... throws org.postgresql.util.PSQLException: Unsupported Types value: 2,003 What am i doing wrong?