Closed
Description
Hi.
I have try to update firebird driver to 1.10.8 on a project that use SQLAlchemy and I got exceptions due to invalid row count on update statement (more affected row than expected).
After investigation, I have found this line that make a sum of all values returned by get_info, but the dict returned by get_info contain values for previously executed statements when execute is called multiple times with different operations (select, insert, update, delete).
Example, when insert rows and then update rows (same or other)
cur.execute("insert into project (proj_id, proj_name) values ('FOO', 'BAR')")
cur.execute("update project set proj_name = 'RAB' where proj_id = 'FOO'")
cur.fetchone()
# here, expected that cur.affected_rows is 1, but is value is 2
It is possible to find a test that reproduce this behavior here master...Fred-si:firebird-driver:invalid-row-count
Regression appear in release 1.10.7
Metadata
Metadata
Assignees
Labels
No labels