Cursor.executemany() hiding results up to the last one #518
Labels
api: spanner
Issues related to the googleapis/python-spanner-django API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I think we have a bug in
Cursor.executemany()
method. Given the code it runsCursor.execute()
in a cycle, whileexecute()
is actually replacing result of every previous call with a result from the last one.So, if we, for example, will call
executemany()
with several reads, we'll get only results of the last one:But in fact both reads, with
SingerId=12
and withSingerId=15
, were executed and we got results.@c24t, we already have a proposition of how to deal with
executemany()
in the design doc, PTAL atStreamedManyResultSets
section.The text was updated successfully, but these errors were encountered: