message:column xxx is of type integer but expression is of type character varying。
原因分析:String的成员变量存到int的数据库列 报错。
解决方案:在Java程序中通过连接字符串去连接,然后去操作PostgreSQL。
在一些GUI的数据库客户端(如 DBeaver) 去连接 PostgreSQL ,都是可以设置 stringtype=unspecified
这样的连接参数项的。
jdbc:postgresql://xxx.xxx.xxx.xxx:xxx/db_test?stringtype=unspecified
补充:kettle中配置DB连接时配置“选项”添加命令参数stringtype值为unspecified