pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: rtrier (@rtrier) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: Re: [pgjdbc/pgjdbc] issue #3562: After insert with PreparedStatement into table with complex types querying leads to resultset with incorrect type
Date: Wed, 12 Mar 2025 19:02:54 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

If read getPGType(int) is called first:

getPGType(119193)
	at org.postgresql.jdbc.TypeInfoCache.getPGType(TypeInfoCache.java:582)
	at org.postgresql.jdbc.PgResultSet.initSqlType(PgResultSet.java:3224)
	at org.postgresql.jdbc.PgResultSet.getSQLType(PgResultSet.java:3213)
	at org.postgresql.jdbc.PgResultSet.internalGetObject(PgResultSet.java:204)
	at org.postgresql.jdbc.PgResultSet.getObject(PgResultSet.java:3072)
	at de.gdiservice.bplan.BPlanDAO.createBPlan(BPlanDAO.java:423)
	at de.gdiservice.bplan.BPlanDAO.findById(BPlanDAO.java:295)
	at de.gdiservice.bplan.BPlanWriteReadTest.runGeoplex(BPlanWriteReadTest.java:110)
	at de.gdiservice.bplan.BPlanWriteReadTest.main(BPlanWriteReadTest.java:164)
getPGType(119193)=> not found

Setting 
	getPGType(119193)=> onPath=false => " pgTypeName=""xplan_gml"."bp_status""
	getPGType(119193) onPath=false => pgNameToOid.put(xplan_gml.bp_status, 119193)
	getPGType(119193)=> pgNameToOid.put("xplan_gml"."bp_status", 119193)
	getPGType(119193)=> pgNameToOid.put(119193, "xplan_gml"."bp_status")


view thread (10+ messages)  latest in thread

reply

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 using the --to and --cc options:
  reply via email

  To: github://pgjdbc/pgjdbc
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] issue #3562: After insert with PreparedStatement into table with complex types querying leads to resultset with incorrect type
  In-Reply-To: <<[email protected]>>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox