Modify ↓
Opened 18 years ago
Closed 17 years ago
#3239 closed defect (duplicate)
Report 'All Tickets By Milestone (including closed)' broken on postgresql-8.1
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | report system | Version: | 0.9.6 |
Severity: | normal | Keywords: | postgresql |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Using Trac 0.9.3 and Postgresql-8.1.3 it is unable to use report '{6} All tickets by milestone (including closed)' due to some bugs in SQL code. Instead of
(CASE status WHEN 'closed' THEN modified ELSE (-1) * p.value END)
where should be something like
(CASE status WHEN 'closed' THEN changetime ELSE (-1) * p.value::int END)
i.e. changetime
field instead of modified
and p.value
should be converted to number.
Attachments (0)
Change History (5)
comment:1 by , 18 years ago
Version: | 0.9.3 → 0.9.6 |
---|
comment:2 by , 18 years ago
Keywords: | postgresql added |
---|---|
Milestone: | → 0.10.1 |
Owner: | changed from | to
See also #2123.
I'll have a look if we can find a syntax that works everywhere.
comment:4 by , 18 years ago
I've had the same problem. Also can use the
CAST(p.value AS INT)
syntax for compatibility.
comment:5 by , 17 years ago
Milestone: | 0.10.5 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Duplicate of #5543.
Note:
See TracTickets
for help on using tickets.
I confirm the bug and the fix. Both are valid in 0.9.6 as well.