Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 05CDD9FB572 for ; Sat, 19 May 2007 08:45:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 17467-06 for ; Sat, 19 May 2007 08:45:04 -0300 (ADT) X-Greylist: delayed 00:21:24.0349 by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 3304F9FB57E for ; Sat, 19 May 2007 08:45:09 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from siec.mine.nu (gcl126.internetdsl.tpnet.pl [83.12.63.126]) by svr4.postgresql.org (Postfix) with ESMTP id 2D87D5AF5CE for ; Sat, 19 May 2007 11:23:44 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by siec.mine.nu (Postfix) with ESMTP id BCBD1537594 for ; Sat, 19 May 2007 11:31:04 +0000 (Local time zone must be set--see zic manual page) X-Virus-Scanned: amavisd-new at siec.mine.nu Received: from siec.mine.nu ([127.0.0.1]) by localhost (siec.mine.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hHQTQ-ryDqfk for ; Sat, 19 May 2007 11:30:57 +0000 (Local time zone must be set--see zic manual page) Received: from [192.168.0.5] (apollo [192.168.0.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by siec.mine.nu (Postfix) with ESMTP id E24D53D5C71 for ; Sat, 19 May 2007 11:30:56 +0000 (Local time zone must be set--see zic manual page) Message-ID: <464EDE37.8060201@siec.mine.nu> Date: Sat, 19 May 2007 13:23:35 +0200 From: Marcin Gala User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Postgres jdbc mailing list Subject: JDBC and composite types Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/50 X-Sequence-Number: 17040 Could anyone tell me, how to read table's columns that are of composite type? I was trying to use getObject with different types of casting, however nothing worked :( Also getString doesn't give me a string representation of type... My type is: CREATE TYPE forwarding_number AS (always number_type, busy number_type, "notResponding" number_type, "notLogged" number_type); I'm trying to get data from table X where column y is of type forwarding_number. Marcin