#2862 closed defect (fixed)
MySQL 5 Updates so Reports Run
Reported by: | Owned by: | Russ Tyndall | |
---|---|---|---|
Priority: | high | Component: | TimingAndEstimationPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
We have needed to make some changes to the trac0.10 branch to get management reports to run.
Attached is a patch that fixes the issues we have found.
Attachments (1)
Change History (6)
Changed 17 years ago by
Attachment: | reports.py.patch added |
---|
comment:1 Changed 17 years ago by
This issue also seems to affect the trac0.11 branch. The patch mostly works, changing VARCHAR to CHAR, but there was one piece of the patch rejected:
$ more reports.py.rej *************** *** 237,246 **** "sql": """ SELECT __color__, __style__, ticket, summary, component ,version, severity, milestone, status, owner, Estimated_work, Total_work, billable - --## ,created, modified, -- ## Dates are formatted ,_description_ - --## _changetime, - --## _reporter ,_ord FROM ( --- 237,246 ---- "sql": """ SELECT __color__, __style__, ticket, summary, component ,version, severity, milestone, status, owner, Estimated_work, Total_work, billable + -- ## ,created, modified, -- ## Dates are formatted ,_description_ + -- ## _changetime, + -- ## _reporter ,_ord FROM (
comment:2 Changed 17 years ago by
Without the change to the format of the comments, this is an invalid MySQL5 statement.
http://dev.mysql.com/doc/refman/5.0/en/comments.html
Any valid comment syntax would be of value, the above patch was just a quick fix that was meant to be as non-disruptive as possible. Is the issue this breaks with other engines?
comment:3 Changed 17 years ago by
Nice fix. That is lame that mysql requires whitespace there.
I will apply this next time i open this to work on it. Till then I will leave it open so others can find it.
comment:4 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
SQL Updates by Julia Rhodes