Changes between Version 1 and Version 2 of Ticket #10723


Ignore:
Timestamp:
Apr 4, 2009, 12:16:10 AM (15 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