From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [GENERAL] JDBC +CIDR (fwd)
Date: Fri, 22 Oct 2004 09:45:00 +1300
Message-ID: <41781FCC.3080902@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0410211317130.22147@leary.csoft.net>
References: <Pine.BSO.4.56.0410211317130.22147@leary.csoft.net>
Kris Jurka wrote:
> What kind of solution can we offer for this problem? Do we really need to
> make PGobject extensions for every type? Do we really want to force
> people to have to create these for all user defined types?
Well, you don't have to create a subclass, I think, if you don't mind
doing the parsing in the application:
PGobject dummy = new PGobject();
dummy.setType("cidr");
dummy.setValue("192.168.0.0/24");
statement.setObject(1, dummy, Types.OTHER);
Alternatively, does setString() + "?::cidr" work?
-O
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: oliver@opencloud.com, books@ejurka.com
Subject: Re: [GENERAL] JDBC +CIDR (fwd)
In-Reply-To: <41781FCC.3080902@opencloud.com>
References: <Pine.BSO.4.56.0410211317130.22147@leary.csoft.net> <41781FCC.3080902@opencloud.com>
* 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