Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3D754632BC8 for ; Tue, 10 Aug 2010 17:00:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 64387-07 for ; Tue, 10 Aug 2010 20:00:40 +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 D61B7632E00 for ; Tue, 10 Aug 2010 17:00:40 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id E516D28430; Tue, 10 Aug 2010 16:00:38 -0400 (EDT) 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=606SfSDu7bw/791YHwCIuASVAZ4=; b=mI2wvy k3jvLdYw6IlBxEXQaifDwJyQJ+sGHZVihS3iCUFjsCVhXmZS0r/qLCXBq/1/4yqK WfgYflUOL/cNW2TI3AGt6XyxRILf/xL5UQjJx5gw8gXkw0ZO9Os+h8bBe3K2ZsKd LkEwLy7ywAPJvx1sxtqX3K6Yq3JRXP7LgFYyw= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id D643428413; Tue, 10 Aug 2010 16:00:38 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id CE0AAA264; Tue, 10 Aug 2010 16:00:38 -0400 (EDT) Date: Tue, 10 Aug 2010 16:00:38 -0400 (EDT) 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=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/43 X-Sequence-Number: 20846 On Fri, 29 Jan 2010, Kris Jurka wrote: > 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. I've applied a fix to this for 8.3, 8.4, and 9.0 in CVS. Kris Jurka