在运行过程中更改表结构后,JAVA报错 cached plan must not change result type
原因 :postgres server具有server prepared statement功能,默认启用
解决方案: 在JDBC连接声明 prepareThreshold=0 参数禁用 server端的PS功能即可,如下:
jdbc:postgresql://localhost:5432/ms_example?prepareThreshold=0
原因 :postgres server具有server prepared statement功能,默认启用
解决方案: 在JDBC连接声明 prepareThreshold=0 参数禁用 server端的PS功能即可,如下:
jdbc:postgresql://localhost:5432/ms_example?prepareThreshold=0
本文标题:PostgresSQL 常见问题及注意问题
本文链接:https://www.haomeiwen.com/subject/sgdxtqtx.html
网友评论