Thanks for your answer.

I have compared the .cnf on both of my servers and they are identical?

Then, in my settings.py file, I set my database options to
'sql_mode' : 'TRADITIONAL' and now I don't have the error anymore. So
that fix my problem.

But that doesn't explain the 2 different behaviors on 2 mostly
identical servers?

Etienne

On Jan 25, 6:34 pm, Dirk Eschler <esch...@gmail.com> wrote:
> Am Dienstag, 25. Januar 2011, 19:48:48 schrieb etienned:
>
>
>
> > I would like to understand how Warning/Exception are treated in the
> > MySQL backend because I have a weird bug.
>
> > When I run the test suite of django-reversion on my production server
> > (Ubuntu 10.04) one test fail because MySQL give a warning instead of
> > an exception. If I run the same test on my testing server (again
> > Ubuntu 10.04 but in VirtualBox, so it's mostly the same software)
> > MySQL give the exception so the test didn't fail. I tried on both
> > server with DEBUG = True and DEBUG = False with the same result.
>
> > For more info you could check here:
> >https://github.com/etianen/django-reversion/issues/closed#issue/18/co...
> > 566932
>
> > Anyone have an idea on this bug or, at least, explain how Warning/
> > Exception are treated in the MySQL backend?
>
> Hello,
>
> the behaviour depends on the "non-strict" setting of the MySQL server. If i
> remember correctly in non-strict mode an error will be raised. You should
> compare the server configs of both machines.
>
> Best Regards,
> Dirk Eschler
>
> --
> Dirk Eschler <esch...@gmail.com>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to