Edgewall Software
Modify

Opened 19 years ago

Closed 17 years ago

#3239 closed defect (duplicate)

Report 'All Tickets By Milestone (including closed)' broken on postgresql-8.1

Reported by: goodguy@… 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 jensen@…, 18 years ago

Version: 0.9.30.9.6

I confirm the bug and the fix. Both are valid in 0.9.6 as well.

comment:2 by Christian Boos, 18 years ago

Keywords: postgresql added
Milestone: 0.10.1
Owner: changed from daniel to Christian Boos

See also #2123.

I'll have a look if we can find a syntax that works everywhere.

comment:3 by anonymous, 18 years ago

I have the same problem in 0.10/pg 8.1.5.

comment:4 by anonymous, 18 years ago

I've had the same problem. Also can use the

CAST(p.value AS INT)

syntax for compatibility.

comment:5 by Christian Boos, 17 years ago

Milestone: 0.10.5
Resolution: duplicate
Status: newclosed

Duplicate of #5543.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.