resultset.set ignores slice, modifying data it shouldn't
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
New
|
Undecided
|
Unassigned |
Bug Description
This is a potential data loss bug.
For a result set foo, foo[:n].set(...) updated all rows selected by the foo result set, not just the sliced rows.
>>> bugs = store.find(Bug)
>>> limited_bugs = bugs[:3]
>>> list(limited_bugs)
SELECT Bug.date_
-------
[<Bug at 0x791fb90>, <Bug at 0x791fa10>, <Bug at 0x791f890>]
>>> limited_
UPDATE Bug SET heat_last_
-------