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 56E739DC8DE for ; Tue, 17 Jan 2006 11:57:29 -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 92674-02 for ; Tue, 17 Jan 2006 11:57:34 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by postgresql.org (Postfix) with ESMTP id 132A89DC86A for ; Tue, 17 Jan 2006 11:57:26 -0400 (AST) Received: by zproxy.gmail.com with SMTP id 14so1379106nzn for ; Tue, 17 Jan 2006 07:57:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bLh68gk/zKBMxpB1sQ3gHsf+e5hoAJexObYUeM0xYk2jLZgojc/jTdxg7GwXHwYe8G+yqxhsj3XGTiT8hSSLGlvUmV8MoLunqulMIshq5iWubKOwl5K/VvDkXuBiBO6e3HJEyHs6hVkJs1wOQF5pp65bdpL9oT6wXlZt4iuHujg= Received: by 10.36.38.3 with SMTP id l3mr5762183nzl; Tue, 17 Jan 2006 07:57:32 -0800 (PST) Received: by 10.36.109.11 with HTTP; Tue, 17 Jan 2006 07:57:32 -0800 (PST) Message-ID: <651aa54b0601170757p318edf87ka854f586c4a64bd0@mail.gmail.com> Date: Tue, 17 Jan 2006 20:57:32 +0500 From: Takeichi Kanzaki Cabrera To: pgsql-jdbc@postgresql.org Subject: Re: reading an oidvector field error In-Reply-To: <18821.1137451206@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <651aa54b0601120629u5008e159y4af88edca5037a82@mail.gmail.com> <43C71C52.4020009@opencloud.com> <651aa54b0601130817s182aac6arf79d705b27a211c0@mail.gmail.com> <43C821C2.7090004@opencloud.com> <651aa54b0601161006l12f76af3w686f4f3c0fc70137@mail.gmail.com> <43CC0AA6.605@opencloud.com> <18171.1137446058@sss.pgh.pa.us> <18821.1137451206@sss.pgh.pa.us> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.06 required=5 tests=[AWL=0.060] X-Spam-Score: 0.06 X-Spam-Level: X-Archive-Number: 200601/79 X-Sequence-Number: 14530 I solve the problem by getting the field as a String and implementing a simple parser for the result. All the ways I test the choice of cast the field as a int8[] and get this exception: java.sql.SQLException: ERROR: cannot cast type oidvector to bigint[] at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(Qu= eryExecutorImpl.java:1482) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExe= cutorImpl.java:1267) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorIm= pl.java:186) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc= 2Statement.java:392) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(Abs= tractJdbc2Statement.java:314) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(Abstrac= tJdbc2Statement.java:221) at pgObjects.PgServer.executeQuery(PgServer.java:372) at pgObjects.PgDatabase.loadFunctionsFromDatabase(PgDatabase.java:8= 64) at test.Test.showFunctions(Test.java:134) at test.Test.main(Test.java:166) Thanks a lot for all of you, Takeichi.