Ticket #7726 (new defect)
Sorting reports on columns aliased to 'Est.' or 'Act.' fails with sqlite
| Reported by: | joshuah@… | Owned by: | rblank |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.3 |
| Component: | report system | Version: | 0.11.1 |
| Severity: | normal | Keywords: | report reports sort sorting sqlite sqlite3 |
| Cc: |
Description
Sorting a report on a column name aliased to end with a period (for example, 'Est.', 'Act.') fails with the following error in sqlite:
Report execution failed: no such column: Est.ASC
Here's the query for the report:
SELECT p.value AS __color__, id AS ticket, milestone, summary as 'Summ.', priority as 'Pri.', date(milestone.Due,'unixepoch') as due, status, changetime AS _changetime, t.description AS _description FROM ticket t, enum p JOIN milestone ON milestone.name=t.milestone WHERE t.owner = '$USER' AND status <> 'closed' AND p.name = t.priority AND p.type = 'priority' ORDER BY owner, milestone.Due, p.value, t.type, time
Escaping the column name with single quotes in the ORDER BY clause generated by Trac seems to fix this problem.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


