gpa*_*sse 3 postgresql spring-roo
当尝试在Spring-roo PostGres项目中创建实体时,我收到以下错误:
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
Run Code Online (Sandbox Code Playgroud)
可能是什么解决方案?
当你有一个字符串文字并且Postgres最终试图决定它是varchar,text,literal数组等时,通常会出现类型未知.
根据需要投射你的字符串,例如:
'2'::int
Run Code Online (Sandbox Code Playgroud)
或者,如果适用,请不要首先引用它.
| 归档时间: |
|
| 查看次数: |
10725 次 |
| 最近记录: |