ERROR: column “publish_date” is of type date but expression is of type bytea
问题 I'm trying to insert objects of type Book into a database, and one of the columns is specified as date, but according to this exception: Caused by: org.postgresql.util.PSQLException: ERROR: column "publish_date" is of type date but expression is of type bytea Hint: You will need to rewrite or cast the expression. Position: 94 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412) at org.postgresql.core.v3.QueryExecutorImpl.processResults