public inbox for [email protected]  
help / color / mirror / Atom feed
From: Rajyalakshmi Sareddy <[email protected]>
To: Laurenz Albe <[email protected]>
To: [email protected] <[email protected]>
Subject: RE: Regarding setClob and getclobval methods in PostgreSQL
Date: Mon, 3 Feb 2025 09:11:15 +0000
Message-ID: <AM6P137MB0130E6C698B0A36DBC861D2BD6F52@AM6P137MB0130.EURP137.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <[email protected]>
References: <AM6P137MB01308BAB4D2504725635DBBBD6E82@AM6P137MB0130.EURP137.PROD.OUTLOOK.COM>
	<[email protected]>

Hi,

Thank you for your response.

Can you please ping me specific mailing list for the JDBC driver so that I can get better solutions.

Thanks and Regards
Rajyalakshmi Sareddy
Integration Developer
Middleware & Integration
GSK Tech
Hyderabad, India
E: [email protected]
M: +91 8309974485


-----Original Message-----
From: Laurenz Albe <[email protected]>
Sent: Saturday, February 1, 2025 5:13 AM
To: Rajyalakshmi Sareddy <[email protected]>; [email protected]
Subject: Re: Regarding setClob and getclobval methods in PostgreSQL

On Fri, 2025-01-31 at 11:35 +0000, Rajyalakshmi Sareddy wrote:
> We are currently migrating the code from oracle to postgresql and
> using jdbc jar ispostgresql-42.7.4.jar. But for code migration, we are
> getting errors like
> org.postgresql.jdbc.PgPreparedStatement.setClob(int, Reader) is not yet implemented.
>
> Could you please confirm on setClob and getclobval methods are
> implemented in postgresql-42.7.4 jar.  If not implemented, could you
> please suggest with alternate methods.

I can only confirm that that method is *not* implemented.
You would have to use setClob(int parameterIndex, Clob x) instead.

But really, *do not* use any of the getClob and setClob methods, because they use Large Objects in PostgreSQL, and you should avoid Large Objects.

Use setBinaryStream(int parameterIndex, InputStream x) instead, so that you can use "bytea" in the database.

By the way, there is a specific mailing list for the JDBC driver, where you may get better answers.

Yours,
Laurenz Albe
GSK monitors email communications sent to and from GSK in order to protect GSK, our employees, customers, suppliers and business partners, from cyber threats and loss of GSK Information. GSK monitoring is conducted with appropriate confidentiality controls and in accordance with local laws and after appropriate consultation.





view thread (4+ 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: [email protected]
  Cc: [email protected], [email protected]
  Subject: RE: Regarding setClob and getclobval methods in PostgreSQL
  In-Reply-To: <AM6P137MB0130E6C698B0A36DBC861D2BD6F52@AM6P137MB0130.EURP137.PROD.OUTLOOK.COM>

* 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