pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feedFrom: 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:01:18 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
the Insert PreparedStatment leads that TypeInfoCache.getPGType(String) is called prior TypeInfoCache.getPGType(int)
BAD:
getPGType(""xplan_gml"."bp_status"")
at org.postgresql.jdbc.TypeInfoCache.getPGType(TypeInfoCache.java:542)
at org.postgresql.jdbc.PgPreparedStatement.setPGobject(PgPreparedStatement.java:523)
at org.postgresql.jdbc.PgPreparedStatement.setObject(PgPreparedStatement.java:1037)
at de.gdiservice.bplan.BPlanDAO.setSQLParameter(BPlanDAO.java:172)
at de.gdiservice.bplan.BPlanDAO.insert(BPlanDAO.java:246)
at de.gdiservice.bplan.BPlanWriteReadTest.runGeoplex(BPlanWriteReadTest.java:123)
at de.gdiservice.bplan.BPlanWriteReadTest.main(BPlanWriteReadTest.java:164)
getPGType("xplan_gml"."bp_status") => not found in Cache
It set then the HashSet oidToPgName and pgNameToOid
getPGType oidToPgName.put(119193, bp_status)
getPGType pgNameToOid.put(bp_status, 119193)
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