org.postgresql.util.PSQLException: ERROR: column "task_status" is of type task_status but expression is of type character varying我在数据库都能行,结果这就不行了
is of type character varying这个错误提示是说明你操作的类型不一致导致的。例如你task_status是字符串类型,将整型赋值给这个字段时就会报错。你需要做类型转换才行。