Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CC9FE1337B4F for ; Mon, 10 Jan 2011 21:13:58 -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 65783-01 for ; Tue, 11 Jan 2011 01:13:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id A6BAA1337B39 for ; Mon, 10 Jan 2011 21:13:50 -0400 (AST) Received: from deluge.opencloud.co.nz ([192.168.0.16]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PcSo0-0004o6-5T; Tue, 11 Jan 2011 14:13:48 +1300 Message-ID: <4D2BAECB.7040108@opencloud.com> Date: Tue, 11 Jan 2011 14:13:47 +1300 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Lukas Eder CC: pgsql-jdbc@postgresql.org Subject: Re: Weird issues when reading UDT from stored function References: <4D2BA330.9060009@opencloud.com> In-Reply-To: <4D2BA330.9060009@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201101/25 X-Sequence-Number: 21357 On 11/01/11 13:24, Oliver Jowett wrote: > On 11/01/11 12:06, Lukas Eder wrote: >> ==================================== >> Output: >> # of columns: 6 >> ("(""Parliament Hill"",77)",NW31A9) >> >> Why are there 6 columns? And why is the UDT incorrectly fetched (many >> fields are missing) > > Looks to me like you're getting each field of the UDT as a separate > column. You printed only the first column i.e. the 'street' part. Oops, looking closer I see what you mean, that's actually 2 columns of the surrounding type - street + zip? What are the values of the other 5 columns reported by the driver? A loglevel=2 trace would still be useful here. Oliver