Hi,

I was looking at the ticket at http://code.djangoproject.com/ticket/15040
in which 0 or 1 are returned instead of boolean values in a
BooleanField when MySQL is used with select_related(). Since MySQL
handles them as 0 or 1, they need to be converted.

>From my understanding, when select_related is not used , a function
called resolve_columns defined in SQLCompiler converts the values
using the python builtin bool(). And this is called only from
RawQuerySet.

But I couldn't comprehend anything else on how these methods are
invoked. How exactly is this post processing done and what are the
chain of events leading up to it.

Thanks,
Vivek

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

Reply via email to