Django

Code

Changeset 2478

Show
Ignore:
Timestamp:
03/03/06 04:20:35 (3 years ago)
Author:
russellm
Message:

magic-removal: Fixes #1459 -- Modified the way the row count is compared to accommodate SQLite. Thanks, Malcolm Tredinnick.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/django/db/models/fields/related.py

    r2457 r2478  
    222222        target_col_name, ",".join(['%s'] * len(new_ids))), 
    223223        [source_pk_val] + list(new_ids)) 
    224     if cursor.rowcount is not None and cursor.rowcount > 0: 
     224    if cursor.rowcount is not None and cursor.rowcount != 0: 
    225225        existing_ids = set([row[0] for row in cursor.fetchmany(cursor.rowcount)]) 
    226226    else: