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 4C25B52A37 for ; Mon, 18 Jul 2005 08:55:30 -0300 (ADT) 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 82219-01 for ; Mon, 18 Jul 2005 11:55:25 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6467D52AFA for ; Mon, 18 Jul 2005 08:55:24 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 8A41430959; Mon, 18 Jul 2005 14:01:16 +0200 (MET DST) From: "Roberta Campo" X-Newsgroups: pgsql.interfaces.jdbc Subject: PreparedStatement.setXXX Date: Mon, 18 Jul 2005 13:55:23 +0200 Organization: Hub.Org Networking Services Lines: 26 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.185 tagged_above=0 required=5 tests=PRIORITY_NO_NAME X-Spam-Level: * X-Archive-Number: 200507/103 X-Sequence-Number: 13251 We're moving from Postgresql7.4 to v.8.0.3, with some problems rising from the strictness of the new driver postgresql-8.0-311.jdbc3.jar. We used to call a function f(integer[]) using PreparedStatement.setString('{...}') but now the types are not compatible. How should we fix that ? A. Using the setArray method : This requires the implementation of the interface java.sql.Array : - which methods are required in this case ? - is there any available implementation of this class ? :) B. Using the setObject(colnumber, String, type ) method : This should require less implementation than the Array, shouldn't it ? - how to specify the type int[] ? C. Using different drivers / protocol versions / ... Thanks, Roberta