pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
6+ messages / 2 participants
[nested] [flat]

* Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
@ 2020-01-08 17:15 Andreas Joseph Krogh <andreas@visena.com>
  2020-01-10 15:02 ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Andreas Joseph Krogh @ 2020-01-08 17:15 UTC (permalink / raw)
  To: pgsql-jdbc@lists.postgresql.org


Any plans to implement: 
public Object getObjectImpl(int i, Map<String, Class<?>> map) throws 
SQLException 

? 


-- 
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; 

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
  2020-01-08 17:15 Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
@ 2020-01-10 15:02 ` Dave Cramer <pg@fastcrypt.com>
  2020-01-10 15:04   ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Dave Cramer <pg@fastcrypt.com>
  2020-01-10 17:26   ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Dave Cramer @ 2020-01-10 15:02 UTC (permalink / raw)
  To: Andreas Joseph Krogh <andreas@visena.com>; +Cc: pgsql-jdbc@lists.postgresql.org

There is a patch buried in the myriad of pull requests that is looking at
this.

What would be your MVP here ?

Dave Cramer

davec@postgresintl.com
www.postgresintl.com


On Wed, 8 Jan 2020 at 12:15, Andreas Joseph Krogh <andreas@visena.com>
wrote:

> Any plans to implement:
>
> public Object getObjectImpl(int i, Map<String, Class<?>> map) throws SQLException
>
>
> ?
>
> --
> *Andreas Joseph Krogh*
> CTO / Partner - Visena AS
> Mobile: +47 909 56 963
> andreas@visena.com
> www.visena.com
> <https://www.visena.com;
>

Attachments:

noname (image/png, 1.9K) download view image
^ permalink raw reply [nested|flat] 6+ messages in thread

* Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
  2020-01-08 17:15 Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
  2020-01-10 15:02 ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Dave Cramer <pg@fastcrypt.com>
@ 2020-01-10 15:04   ` Dave Cramer <pg@fastcrypt.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Dave Cramer @ 2020-01-10 15:04 UTC (permalink / raw)
  To: Andreas Joseph Krogh <andreas@visena.com>; +Cc: pgsql-jdbc@lists.postgresql.org

I think this one comes closest.

https://github.com/pgjdbc/pgjdbc/pull/1378
Dave Cramer

davec@postgresintl.com
www.postgresintl.com


On Fri, 10 Jan 2020 at 10:02, Dave Cramer <pg@fastcrypt.com> wrote:

> There is a patch buried in the myriad of pull requests that is looking at
> this.
>
> What would be your MVP here ?
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
>
> On Wed, 8 Jan 2020 at 12:15, Andreas Joseph Krogh <andreas@visena.com>
> wrote:
>
>> Any plans to implement:
>>
>> public Object getObjectImpl(int i, Map<String, Class<?>> map) throws SQLException
>>
>>
>> ?
>>
>> --
>> *Andreas Joseph Krogh*
>> CTO / Partner - Visena AS
>> Mobile: +47 909 56 963
>> andreas@visena.com
>> www.visena.com
>> <https://www.visena.com;
>>
>

Attachments:

noname (image/png, 1.9K) download view image
^ permalink raw reply [nested|flat] 6+ messages in thread

* Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
  2020-01-08 17:15 Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
  2020-01-10 15:02 ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Dave Cramer <pg@fastcrypt.com>
@ 2020-01-10 17:26   ` Andreas Joseph Krogh <andreas@visena.com>
  2020-01-10 17:27     ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Dave Cramer <pg@fastcrypt.com>
  1 sibling, 1 reply; 6+ messages in thread

From: Andreas Joseph Krogh @ 2020-01-10 17:26 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc@lists.postgresql.org


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? 


-- 
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; 

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
  2020-01-08 17:15 Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
  2020-01-10 15:02 ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Dave Cramer <pg@fastcrypt.com>
  2020-01-10 17:26   ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
@ 2020-01-10 17:27     ` Dave Cramer <pg@fastcrypt.com>
  2020-01-10 17:36       ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Dave Cramer @ 2020-01-10 17:27 UTC (permalink / raw)
  To: Andreas Joseph Krogh <andreas@visena.com>; +Cc: pgsql-jdbc@lists.postgresql.org

On Fri, 10 Jan 2020 at 12:27, Andreas Joseph Krogh <andreas@visena.com>
wrote:

> På fredag 10. januar 2020 kl. 16:02:39, skrev Dave Cramer <
> 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


Dave Cramer

davec@postgresintl.com
www.postgresintl.com


>
> --
> *Andreas Joseph Krogh*
> CTO / Partner - Visena AS
> Mobile: +47 909 56 963
> andreas@visena.com
> www.visena.com
> <https://www.visena.com;
>
>

Attachments:

noname (image/png, 1.9K) download view image
^ permalink raw reply [nested|flat] 6+ messages in thread

* Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ?
  2020-01-08 17:15 Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
  2020-01-10 15:02 ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Dave Cramer <pg@fastcrypt.com>
  2020-01-10 17:26   ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
  2020-01-10 17:27     ` Re: Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Dave Cramer <pg@fastcrypt.com>
@ 2020-01-10 17:36       ` Andreas Joseph Krogh <andreas@visena.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Andreas Joseph Krogh @ 2020-01-10 17:36 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc@lists.postgresql.org


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; 

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2020-01-10 17:36 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08 17:15 Plans to implement ResultSet.getObject(String columnLabel, java.util.Map<String,Class<?>> map) ? Andreas Joseph Krogh <andreas@visena.com>
2020-01-10 15:02 ` Dave Cramer <pg@fastcrypt.com>
2020-01-10 15:04   ` Dave Cramer <pg@fastcrypt.com>
2020-01-10 17:26   ` Andreas Joseph Krogh <andreas@visena.com>
2020-01-10 17:27     ` Dave Cramer <pg@fastcrypt.com>
2020-01-10 17:36       ` Andreas Joseph Krogh <andreas@visena.com>

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