Query in test_executemany() has a returning clause and we fetch results
from cursor after execution, so it seems the returning option to
executemany() is needed. These tests probably do not fail because of the
TODO in Cursor._set_results_from_pipeline().
cur.executemany(
"insert into execmanypipeline(num) values (%s) returning id",
[(10,), (20,)],
+ returning=True,
)
assert cur.fetchone() == (1,)
assert cur.nextset()
await cur.executemany(
"insert into execmanypipeline(num) values (%s) returning id",
[(10,), (20,)],
+ returning=True,
)
assert (await cur.fetchone()) == (1,)
assert cur.nextset()