Changes between Version 1 and Version 2 of Ticket #10723


Ignore:
Timestamp:
04/04/09 00:16:10 (8 years ago)
Author:
Malcolm Tredinnick
Comment:

Are you actually seeing incorrect results returned from the database? What do you think the problem is here? I'm having trouble understanding what the bug might be and the SQL looks correct to me.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10723 – Description

    v1 v2  
    2020#!python
    2121Type.objects.filter(Q(activeposts__rubrica__pk=112) & \
    22    Q(activeposts__user_id__in= 1,2,3])). \
     22   Q(activeposts__user_id__in=[1,2,3])). \
    2323   annotate(count=Count('activeposts')).query.as_sql()
    2424}}}
Back to Top