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 (