当前位置:   article > 正文

java写入pgsq无权限,java – Postgres错误方法org.postgresql.jdbc.PgConnection.createClob()未实现...

method org.postgresql.jdbc.pgconnection.createclob() is not yet implemented

当我使用连接对象调用createClob方法时,如下所示

Clob clob = con.createClob();

抛出以下异常.

Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.

at org.postgresql.Driver.notImplemented(Driver.java:659)

at org.postgresql.jdbc.PgConnection.createClob(PgConnection.java:1246)

at org.apache.commons.dbcp2.DelegatingConnection.createClob(DelegatingConnection.java:868)

at org.apache.commons.dbcp2.DelegatingConnection.createClob(DelegatingConnection.java:868)

我使用数据库PostgreSQL 9.6.2和JDK8并使用commons-dbcp2连接池,并在pom.xml中添加了以下Postgres依赖项

org.postgresql

postgresql

42.1.1

在类org.postgresql.jdbc.PgConnection中,createClob实现如下所示,它抛出异常.

@Override

public Clob createClob() throws SQLException {

checkClosed();

throw org.postgresql.Driver.notImplemented(this.getClass(), "createClob()");

}

解决此问题的解决方案或解决方法是什么?或者我们如何在Postgres查询中设置CLOB数据?

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/266642
推荐阅读
相关标签
  

闽ICP备14008679号