I had trouble with "ORDER BY DESC" with MySQL that I reported in
http://trac.edgewall.org/ticket/3645#comment:48

I finally found bug  36639 (http://bugs.mysql.com/bug.php?id=36639) on
the MySQL web page that said the problem I was seeing was unique to 64
bit pentium 4 under openSUSE 10.3 and gcc-4.2.1. The problem is not
repeatable on any other machine (32/64 bit, intel/amd, suse or other
distribution). I installed mysql 5.0.77 and the problem is gone.

It is unlikely that your setup falls into this group, but if it does,
I suggest you upgrade mysql.

Dale


On Feb 17, 10:03 am, "Matt Caron" <[email protected]> wrote:
> > Got this error on my tickets report (got a mysql database)
>
> > Report execution failed: (1064, "You have an error in your SQL syntax;
> > check the manual that corresponds to your MySQL server version for the
> > right syntax to use near ' 'admin', ')'\n ORDER BY (status =
> > 'assigned') DESC, p.value, milestone, t.type,' at line 9")
>
> I do not believe that this is correct:
>
> ORDER BY (status = 'assigned') DESC
>
> I think you want:
>
> ORDER BY status DESC
> --
> SIXNET - Solutions for Your Industrial Networking Challenges
> 331 Ushers Road, Ballston Lake, NY 12019
> Tel: 1.518.877.5173, Fax: 1.518.877.8346www.sixnet.com

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to