Then I would suggest you check your C code.
The program 'mysql' uses the C API.
Christer Holmström (at Home) wrote:
Hi, and thanks for the response, but unfortunately the same problem with
both below
SELECT exe, sum(duration) FROM data GROUP BY exe ORDER BY 2 DESC;
SELECT exe, sum(duration) AS
Christer Holmström (at Home) wrote:
> Hi!
>
> This SQL works perfect when running the command line tool mysql.exe
>
> SELECT exe, sum(duration) FROM data GROUP BY exe ORDER BY 2
>
> BUT when running from the C API, the "ORDER BY" part doesn't seem
> active, why?
>
> Please help.
>
> /Christer
>
>