Jasper-reports:错误:运算符不存在date = boolean

时间:2012-02-15 14:16:28

标签: postgresql jasper-reports ireport

[编辑:此问题是版本3.7.6中的错误的结果]

以下postgresql查询返回错误:

operator does not exist date = boolean. 

我无法弄清楚原因。这是给我错误的postgresql代码:

select
    c.source,
    s.name,
    s.grouping,
    s.kli,
    s.term_desc,
    (s.population - s.online) as non_hb_pop,
    s.online as hb_pop,
    s.population as full_pop,
    s.rep_date

from
    dwh.rpt_cu_private_kli_summary s, dwh.rpt_sgmt_clients c
where

    s.partner_id::integer = $P{rpt_cu}
    and s.rep_date = $P{rpt_date_beg}
    and s.userid=c.userid

group by
    c.source, s.term_desc, s.name, s.grouping, 
    s.population, s.online, s.kli, s.rep_date
order by
    s.grouping,
    full_pop desc,
    s.term_desc;

上述错误讯息是什么意思?

1 个答案:

答案 0 :(得分:2)

$ P {rpt_date_beg}的价值是多少?出现问题的地方。检查真实的查询,可能在错误日志中,并进行一些调试。也许有些引用'在日期值附近缺失。