Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 85A791337B34 for ; Tue, 23 Nov 2010 03:28:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 78433-04 for ; Tue, 23 Nov 2010 07:28:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 129A71336B42 for ; Tue, 23 Nov 2010 03:28:03 -0400 (AST) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id E5F8028423; Tue, 23 Nov 2010 02:28:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=e9S5g6cIZi7T2cyMyA+XXn7HWXQ=; b=N28Wdx LH9np0edvE10MU/2n6xuDhwZNsR9C75LnN5HUX3JzvvhcaAkC9OWBHknR7ITjcH0 H8fKUl+rV+chsXlOO7jGyvM2rw7erYWuuTLob3BozyBb+HKr2w3D/4Pec8c7hm8I Dx4r7kWRwHvhpBjAhJLj4EPTKsi1uFldf1R/E= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id C5E1428417; Tue, 23 Nov 2010 02:28:02 -0500 (EST) Received: by leary.csoft.net (Postfix, from userid 1112) id 923D5AB10; Tue, 23 Nov 2010 02:28:02 -0500 (EST) Date: Tue, 23 Nov 2010 02:28:02 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: =?ISO-8859-2?Q?Rados=B3aw_Smogura?= cc: pgsql-jdbc@postgresql.org Subject: Re: TypeInfoCache.getPGArrayElement - determine if array In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/68 X-Sequence-Number: 21189 On Mon, 22 Nov 2010, Rados?aw Smogura wrote: > > In TypeInfo.getPGArrayElement it is written "Returns: the base type's OID, > or 0 if unknown", but if given oid isn't array exception is thrown (empty > result set), if unknown doesn't means unspecified then following patch Yes, it does have the assumption that the oid passes is an array type, but I'm not sure that's a problem. Is there a case that you want to use this for a type that may or may not be an array and don't want an exception thrown? If not, I think updating the documentation is the way to go. Kris Jurka