开发者

Operator does not exist

开发者 https://www.devze.com 2023-03-13 01:43 出处:网络
When trying to create an entity in a Spring-roo PostGres project,开发者_如何学Python I get the following error :

When trying to create an entity in a Spring-roo PostGres project,开发者_如何学Python I get the following error :

ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: operator does not exist: integer ~~ unknown
Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Position: 433

What could be the solution ?


Type unknown usually occurs when you've a string literal and Postgres ends up trying to decide if it's a varchar, text, literal array, etc.

Cast your string as needed, e.g.:

'2'::int

Or don't quote it in the first place, if applicable.

0

精彩评论

暂无评论...
验证码 换一张
取 消