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

99封情书 提交于 2021-01-28 08:40:32

问题


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


回答1:


The method createBlob ist 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




回答2:


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.



来源:https://stackoverflow.com/questions/65094862/how-to-resolve-method-org-postgresql-jdbc-pgconnection-createblob-is-not-yet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!