From: Robert Wimmer <seppwimmer@hotmail.com>
To: pgsql-jdbc@postgresql.org
Subject: update custom types via resultset
Date: Tue, 23 Oct 2007 14:53:32 +0000
Message-ID: <BAY139-W134257831F2A5744C665CAD09B0@phx.gbl> (raw)
My question is - is there a possibility to update or insert user defined types in a table via a resultset.
for example :
CREATE TYPE t0type AS (a INT PRIMARY KEY, b INT );
CREATE TABLE t1 (id INT, t0 t0type);
id like to avoid java commands like
query = "UPDATE t1 (t0).a = 12, (t0).b WHERE id = 23";
i would prefer to use the resultset syntax like
rs.update??("t0",??)
or is there any workaround
thanks Sepp
_________________________________________________________________
Jetzt 30 Gratis-Emoticons für Windows Live Messenger downloaden!
http://www.livemessenger-emoticons.com/de-at/
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: seppwimmer@hotmail.com
Subject: Re: update custom types via resultset
In-Reply-To: <BAY139-W134257831F2A5744C665CAD09B0@phx.gbl>
References: <BAY139-W134257831F2A5744C665CAD09B0@phx.gbl>
* 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