You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract _ExecuteManyAccumulator for the RETURNING-aware loop
Both the sync and async cursor executemany implementations maintained
a near-identical per-iteration accumulation (rowcount sum, inherit
first-seen description, extend the row list). Factor the state into a
shared _ExecuteManyAccumulator class that both cursors drive: push()
after each execute/_execute_async and apply() at the end. Behaviour
is preserved exactly — first non-None description wins, rowcount is
total-affected, rows concatenate in iteration order.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments