From: Marcin Gala <mailing@siec.mine.nu>
To: Postgres jdbc mailing list <pgsql-jdbc@postgresql.org>
Subject: JDBC and composite types
Date: Sat, 19 May 2007 13:23:35 +0200
Message-ID: <464EDE37.8060201@siec.mine.nu> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: mailing@siec.mine.nu
Subject: Re: JDBC and composite types
In-Reply-To: <464EDE37.8060201@siec.mine.nu>
References: <464EDE37.8060201@siec.mine.nu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox