Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 4301F6333B4 for ; Fri, 29 Jan 2010 17:43:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 42013-08 for ; Fri, 29 Jan 2010 21:43:34 +0000 (UTC) Received: from mx1.hub.org (mx1.hub.org [200.46.208.106]) by mail.postgresql.org (Postfix) with ESMTP id BF1BC6348D4 for ; Fri, 29 Jan 2010 17:43:38 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mx1.hub.org (Postfix) with ESMTP id 83FA43263333 for ; Fri, 29 Jan 2010 17:43:37 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id C00DDA3BE; Fri, 29 Jan 2010 16:43:31 -0500 (EST) Date: Fri, 29 Jan 2010 16:43:31 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Thomas Kellerer cc: pgsql-jdbc@postgresql.org Subject: Re: Object types and ResultSets (java.sql.Struct) 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=-2.547 tagged_above=-10 required=5 tests=AWL=0.052, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/79 X-Sequence-Number: 20275 On Sat, 23 Jan 2010, Thomas Kellerer wrote: > DatabaseMetaData.getColumns() will return a java.sql.Types.STRUCT for the > column "contact". > That seems to be correct to me - at least this is what I expected ;) > > When running a "SELECT * FROM contacts", ResultSetMetaData.getColumnType() > will return java.sql.Types.OTHER (for the contact column) > > This seems to be inconsistent to me. > > My expectation was that ResultSetMetaData.getColumnType() should also return > java.sql.Types.STRUCT That should be easy enough to fix. I'll take a look. > and that the object returned by getObject() on the > ResultSet should implement java.sql.Struct (which it doesn't) > That one will take some more work. I wouldn't hold my breath on that one. Kris Jurka