GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Invalid affected_row count on multiple statements (regression in 1.10.7) · Issue #44 · FirebirdSQL/python3-driver Closed DescriptionHi. 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). 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 Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |