Ok. I'll try to produce another code. I'll send you a patch as soon as I solve the problem.

2006/10/25, Oleg Broytmann <phd@phd.pp.ru>:
On Wed, Oct 25, 2006 at 08:55:41AM -0300, Raphael Derosso Pereira wrote:
> I'll try to adapt the code to do its job independent of order.

   I think I once did it - that's why there are two loops

            for registryClass in allClasses:

> Could you clear to me what is the objective of this method?

   It adds stright joins to all parent tables for all inheritable classes
listed in the query.

     Oleg Broytmann             http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

Raphael Derosso Pereira
Engenheiro da Computação
icq: 4517421
msn: rderossopereira@hotmail.com
Phone: +55 41 3024-7430
Cel: +55 41 9661-4442