On Fri, Jun 26, 2009 at 2:17 PM, Nathan Auch [Sybase] <[email protected]>wrote:

>
> I'm working on getting the SQL Anywhere backend to pass the test suite
> for the current Django development branch. I've run into a number of
> tests that are failing intermittently due to the order in which results
> are returned. For example, the regressiontests/null_fk test sometimes
> fails with:
>
> Failed example:
>    [(c.id, c.comment_text, c.post) for c in comments]
> Expected:
>    [(1, u'My first comment', <Post: First Post>), (2, u'My second
> comment', None)]
> Got:
>    [(2, u'My second comment', None), (1, u'My first comment', <Post:
> First Post>)]
>
> The order in which results are returned is generally not deterministic
> with SQL Anywhere unless an ORDER BY clause is used. It appears that
> this is in line with what is expected by Django (see:
> http://www.djangoproject.com/documentation/models/ordering/).
>
> I can submit a patch that adds ordering information to the affected test
> cases, but I first wanted to make sure that this is indeed expected
> behaviour for the test suite and not a bug in our backend
> implementation. Is this not an issue with any of the other database
> vendors?
>
> Thanks,
>
> Nathan Auch
> Sybase iAnywhere
>
> >
>
Yeah go ahead and submit a patch, there are lots of places in the test suite
where Django makes an assumption that mostly works and we try to fix them as
they come to our attention.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to