Zack Macomber
Zack Macomber

Reputation: 6905

How to resolve "Method org.postgresql.jdbc.PgConnection.createBlob() is not yet implemented"

I have seen posts on how to resolve org.postgresql.jdbc.PgConnection.createClob() is not yet implemented and I have applied spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true as suggested by those posts on the createClob() issue. My issue is I am getting the is not yet implemented message but in reference to the createBlob() method in particular.

How do I resolve this for the createBlob() method in particular?

Hibernate Core 5.4.20

Postgre 42.2.18

Spring Boot 2.3.3

Upvotes: 2

Views: 2926

Answers (2)

jfx
jfx

Reputation: 383

The method createBlob is just about to be implemented in Postgres 42.3.0: https://github.com/pgjdbc/pgjdbc/pull/1272/files

https://github.com/pgjdbc/pgjdbc/projects/2#card-11520125

Upvotes: 1

Zack Macomber
Zack Macomber

Reputation: 6905

I ended up using a byte array as specified at https://jdbc.postgresql.org/documentation/head/binary-data.html. That page also discusses how to use Large Object (BLOB) functionality.

Upvotes: 0

Related Questions