From: Andreas Joseph Krogh <andreas@visena.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@lists.postgresql.org
Subject: Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
Date: Fri, 10 Jan 2020 18:36:06 +0100 (CET)
Message-ID: <VisenaEmail.48.ccc6455d1aab5d49.16f90827a7c@tc7-visena> (raw)
In-Reply-To: <CADK3HHKQL1msp8Nbc5m2NpBJdoK+qPkdT0CYQts=G1X11G1ahw@mail.gmail.com>
På fredag 10. januar 2020 kl. 18:27:55, skrev Dave Cramer <pg@fastcrypt.com
<mailto:pg@fastcrypt.com>>:
On Fri, 10 Jan 2020 at 12:27, Andreas Joseph Krogh <andreas@visena.com
<mailto:andreas@visena.com>> wrote:
På fredag 10. januar 2020 kl. 16:02:39, skrev Dave Cramer <pg@fastcrypt.com
<mailto:pg@fastcrypt.com>>:
There is a patch buried in the myriad of pull requests that is looking at this.
What would be your MVP here ?
MVP?
Minimal Viable Product
Well, that it "works" so that when I specify:
rs.getObject("requirement_cell", SQLUtils.typeMap)
and ProcessRequirementTaskCellJdbcData is in typeMap:
h.put("processrequirementtaskcellinfo", classOf[
ProcessRequirementTaskCellJdbcData])
Which maps to the PG-type:
create type ProcessRequirementTaskCellInfo as (task_id bigint, task_version
bigint, task_status_id integer , task_resolution_id integer, task_description
varchar, task_last_modified timestamp, phase_closed_status_id bigint,
requirement_template_idbigint);
And in the query:
select ROW(...)::ProcessRequirementTaskCellInfo
FWIW; his works in pgjdbc-ng, also with nesting, having types used as fields
in types...
Hope this helps...
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
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: andreas@visena.com, pg@fastcrypt.com
Subject: Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
In-Reply-To: <VisenaEmail.48.ccc6455d1aab5d49.16f90827a7c@tc7-visena>
References: <CADK3HHKQL1msp8Nbc5m2NpBJdoK+qPkdT0CYQts=G1X11G1ahw@mail.gmail.com> <VisenaEmail.48.ccc6455d1aab5d49.16f90827a7c@tc7-visena>
* 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