• Jeremy Hylton's avatar
    Variant of a patch from Gintautas Miliauskas. · 656feba9
    Jeremy Hylton authored
    The old code used itertools.chain(), which didn't work as expected.
    If the first of the two iterator grew after the chain had started
    consuming the second iterator, the new element(s) in the first
    iterator would never be consumed.
    
    Fix this bug by eliminating the need for chaining.  Process all the
    _added_during_commit objects at the end, each with its own
    ObjectWriter instance.
    656feba9
Connection.py 39.3 KB