编辑:这个问题是3.7.6版本中的一个bug造成的
以下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;上面的错误消息是什么意思?
发布于 2012-02-15 22:30:06
$P{rpt_date_beg}的值是什么?这就是问题所在。检查实际查询,可能在错误日志中,并进行一些调试。可能日期值周围缺少一些引号‘。
https://stackoverflow.com/questions/9294997
复制相似问题