From: Takeichi Kanzaki Cabrera <tkanzakic@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: reading an oidvector field error
Date: Tue, 17 Jan 2006 20:57:32 +0500
Message-ID: <651aa54b0601170757p318edf87ka854f586c4a64bd0@mail.gmail.com> (raw)
In-Reply-To: <18821.1137451206@sss.pgh.pa.us>
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>
<Pine.BSO.4.61.0601161650430.8600@leary.csoft.net>
<18821.1137451206@sss.pgh.pa.us>
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(QueryExecutorImpl.java:1482)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1267)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:186)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:392)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:314)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:221)
at pgObjects.PgServer.executeQuery(PgServer.java:372)
at pgObjects.PgDatabase.loadFunctionsFromDatabase(PgDatabase.java:864)
at test.Test.showFunctions(Test.java:134)
at test.Test.main(Test.java:166)
Thanks a lot for all of you,
Takeichi.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tkanzakic@gmail.com
Subject: Re: reading an oidvector field error
In-Reply-To: <651aa54b0601170757p318edf87ka854f586c4a64bd0@mail.gmail.com>
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> <Pine.BSO.4.61.0601161650430.8600@leary.csoft.net> <18821.1137451206@sss.pgh.pa.us> <651aa54b0601170757p318edf87ka854f586c4a64bd0@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox