2 messages in com.mysql.lists.bugsRe: Problem with subqueries and order...
FromSent OnAttachments
Wouter van der Logt28 Oct 2003 07:27 
Indrek Siitan28 Oct 2003 10:45 
Subject:Re: Problem with subqueries and order by clause
From:Indrek Siitan (tf@mysql.com)
Date:10/28/2003 10:45:49 AM
List:com.mysql.lists.bugs

Wouter,

When I add an ORDER BY clause ( ORDER BY test.txt) the results will be as followed:

+----+----------+--------+------------+ | id | parentid | txt | childcount | +----+----------+--------+------------+ | 4 | 0 | Test | 0 | | 1 | 0 | Test 1 | NULL | +----+----------+--------+------------+

How is it possible that the childcount is different when I use the ORDER BY clause, especially with subqueries?

This has been fixed in the upcoming 4.1.1 release (just tested it to make sure).

Rgds, Indrek