X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 83D31D1B1C7 for ; Mon, 24 May 2004 10:50:42 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 36202-07 for ; Mon, 24 May 2004 10:50:26 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 77F2BD1B1F9 for ; Mon, 24 May 2004 10:50:21 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i4ODoLSx076637 for ; Mon, 24 May 2004 13:50:21 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i4ODN6O8071726 for pgsql-jdbc@postgresql.org; Mon, 24 May 2004 13:23:06 GMT From: tyagel@yahoo.com (tyagel) X-Newsgroups: comp.databases.postgresql.interfaces.jdbc Subject: Arrays and JDBC :: setObject causes array_in Need to specify dimension Date: 24 May 2004 06:23:10 -0700 Organization: http://groups.google.com Lines: 18 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=FORGED_YAHOO_RCVD X-Spam-Level: X-Archive-Number: 200405/189 X-Sequence-Number: 10199 Im repositing this question from Friday as it ended up on the end of a year old thread that did not answer my question ... I have created a database table with and int[] column and I would like to insert records into this table using JDBC. The JDBC documentation that I have read seems to indicate that I should use setObject when inserting the int[] into my PreparedStatement. When I attempt to insert the record with the int[] that was set via setObject I get an error reading "array_in: Need to specify dimension". Any help with this would be greatly appreciated. Thanks, Thomas