[Dbix-class] Occasional problems with multilevel has_many prefetches

Nigel Metheringham nigel.metheringham at dev.intechnology.co.uk
Mon Nov 27 08:55:22 GMT 2006


On 26 Nov 2006, at 15:31, Nilson Santos Figueiredo Junior wrote:
> Hopefully that test case will be enough. However, I've encountered
> situations where it worked alright for some data sets. It's somewhat
> dependant on the data *and* on the order_by clause of your query
> (sometimes the same query would work when ordered using some columns,
> sometimes it would stop working using another columns, etc).

I suspected that it was data dependant, and was surprised at how easily
I could provoke this bug with the test database. Still, having a test
for 2 level pre-fetch in the joins test code can only help expose these
problems and any future regressions :-/ .

Nigel.
--
[ Nigel Metheringham           Nigel.Metheringham at InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]






More information about the Dbix-class mailing list