Ticket #10205: subqueries.py.diff

File subqueries.py.diff, 569 bytes (added by Enrico, 16 years ago)

Patch to execute_sql in django/db/models/sql/subqueries.py

  • django/db/models/sql/subqueries.py

     
    117117        tables, but their rowcounts are not returned).
    118118        """
    119119        cursor = super(UpdateQuery, self).execute_sql(result_type)
    120         rows = cursor.rowcount
     120        rows = getattr(cursor, 'rowcount', 0)
    121121        del cursor
    122122        for query in self.get_related_updates():
    123123            query.execute_sql(result_type)
Back to Top