Re: Regarding setClob and getclobval methods in PostgreSQL

From: Dave Cramer <davecramer(at)postgres(dot)rocks>
To: Rajyalakshmi Sareddy <rajyalakshmi(dot)x(dot)sareddy(at)gsk(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Regarding setClob and getclobval methods in PostgreSQL
Date: 2025-02-05 13:31:11
Message-ID: CADK3HHL7MJtg2n-5CEmyvU3TeZ4=ewKMFijbpzLkq2UDyoypzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello,

You are correct that it is not implemented.

What is implemented is setClob(int, Clob)
https://github.com/pgjdbc/pgjdbc/blob/15596302e6ab9ccdefe25c9bd91284d5f232ee27/pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java#L1328

However I'm not sure there is any reason that it hasn't been implemented
yet.

Feel free to provide a PR to implement it.

Dave Cramer
www.postgres.rocks

On Mon, 3 Feb 2025 at 09:44, Rajyalakshmi Sareddy <
rajyalakshmi(dot)x(dot)sareddy(at)gsk(dot)com> wrote:

> Hi Team,
>
>
>
> We are currently migrating the code from oracle to postgresql and using
> jdbc jar is *postgresql-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.
>
>
>
> Thanks and Regards
>
> Rajyalakshmi Sareddy
>
> Integration Developer
>
> Middleware & Integration
>
> GSK Tech
>
> Hyderabad, India
>
>
>
> E: rajyalakshmi(dot)x(dot)sareddy(at)gsk(dot)com
>
> M: +91 8309974485
>
>
>
> *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.*
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vinhson Nguyen 2025-03-28 18:24:22 PostgreSQL JDBC 42.7.5 returns an unexpected catalog name
Previous Message Rajyalakshmi Sareddy 2025-02-03 09:22:10 Regarding setClob and getclobval methods in PostgreSQL