=" />
开发者

Error:SQL Problems: ERROR :operator does not exists:date>= character varying

开发者 https://www.devze.com 2022-12-08 19:58 出处:网络
i am using iReport 3.6.0 with postgresql datab开发者_运维问答ase ,for date type parameter its giving the following error when writing query \"Error:SQL Problems: ERROR :operator does not exists:date>=

i am using iReport 3.6.0 with postgresql datab开发者_运维问答ase ,for date type parameter its giving the following error when writing query "Error:SQL Problems: ERROR :operator does not exists:date>= character varying" please help


There should be datefield >= textfield::date. I think that there would be comparing two date fields not two textfields so the datefield::text >= textfield would be rather wrong.


See PostgreSQL 8.3 Release Notes for explanation and workaround. You should use

datefield::text>=textfield


The cast function help too:

cast(date_trunc('year', current_date) as text)
0

精彩评论

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

关注公众号