NutzCN Logo
问答 postgres-xl ERROR: SAVEPOINT is not yet supported.报错
发布于 1821天前 作者 qq_2a1c6850 2087 次浏览 复制 上一个帖子 下一个帖子
标签:

用的postgres-xl 用nutz的时候 出现这个错误

Exception in thread "main" org.nutz.dao.DaoException: org.postgresql.util.PSQLException: ERROR: SAVEPOINT is not yet supported.
	at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithTransaction(NutDaoRunner.java:116)
	at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:89)
	at org.nutz.dao.impl.sql.run.NutDaoRunner$1.run(NutDaoRunner.java:75)
	at org.nutz.trans.Trans.exec(Trans.java:174)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:73)
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)
	at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252)
	at org.nutz.dao.impl.NutDao.query(NutDao.java:527)
	at org.nutz.dao.impl.NutDao.query(NutDao.java:517)
	at org.nutz.dao.impl.NutDao.query(NutDao.java:532)
	at com.bds.tidb.DataSourceUtils.main(DataSourceUtils.java:21)
Caused by: org.postgresql.util.PSQLException: ERROR: SAVEPOINT is not yet supported.
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2422)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2167)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
	at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
	at org.postgresql.jdbc.PgStatement.executeUpdate(PgStatement.java:244)
	at org.postgresql.jdbc.PgConnection.setSavepoint(PgConnection.java:1608)
	at com.alibaba.druid.pool.DruidPooledConnection.setSavepoint(DruidPooledConnection.java:966)
	at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithTransaction(NutDaoRunner.java:103)
	... 10 more
6 回复

可以禁用savepoint,之前的帖子有

兄弟 给个代码,谢谢

覆盖NutDaoRunner 报错

Exception in thread "main" java.lang.NullPointerException
	at com.bds.tidb.update.SQLDaoRunner.run(SQLDaoRunner.java:43)
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:242)
	at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:254)
	at org.nutz.dao.impl.NutDao.query(NutDao.java:527)
	at org.nutz.dao.impl.NutDao.query(NutDao.java:517)
	at org.nutz.dao.impl.NutDao.query(NutDao.java:532)
	at com.bds.tidb.DataSourceUtils.main(DataSourceUtils.java:19)

覆盖NutDaoRunner 但是里面有几个属性是空的

  protected DatabaseMeta meta;

是继承NutDaoRunner的吗?

是继承NutDaoRunner的吗?实现吧?

nice 继承果然可以了 牛逼

添加回复
请先登陆
回到顶部