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 DC91C9DC86C for ; Mon, 16 Jan 2006 17:54:58 -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 41739-09 for ; Mon, 16 Jan 2006 17:54:57 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by postgresql.org (Postfix) with SMTP id EC6419DC87D for ; Mon, 16 Jan 2006 17:54:52 -0400 (AST) Received: (qmail 16949 invoked by uid 1112); 16 Jan 2006 21:54:53 -0000 Date: Mon, 16 Jan 2006 16:54:53 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Tom Lane cc: Oliver Jowett , Takeichi Kanzaki Cabrera , pgsql-jdbc@postgresql.org Subject: Re: reading an oidvector field error In-Reply-To: <18171.1137446058@sss.pgh.pa.us> Message-ID: 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.048 required=5 tests=[AWL=0.048] X-Spam-Score: 0.048 X-Spam-Level: X-Archive-Number: 200601/75 X-Sequence-Number: 14526 On Mon, 16 Jan 2006, Tom Lane wrote: > In very recent PG releases, you could cast oidvector to oid[] (or maybe > better int8[]) in your query, but unless the JDBC array code copes with > nondefault subscripts, it'll still have trouble: > The JDBC array code throws away nondefault subscripts because the JDBC spec says that all arrays are 1-indexed. For the most part people don't want non-default subscripts and only get them via prepending operations that they didn't expect to alter the indexing (of course these are now gone in 8.2). Kris Jurka