tlocke / pg8000

A Pure-Python PostgreSQL Driver
BSD 3-Clause "New" or "Revised" License
515 stars 46 forks source link

AttributeError calling executemany with empty parameter set #82

Closed GKTheOne closed 3 years ago

GKTheOne commented 3 years ago

Exception when calling Cursor.executemany with an empty param_sets iterator. AttributeError: 'NoneType' object has no attribute 'row_count' https://github.com/tlocke/pg8000/blob/1.21.1/pg8000/legacy.py#L304

tlocke commented 3 years ago

Hi @GKTheOne, thanks for reporting this. I've released version 1.21.2 in which the bug should be fixed. I'll close this issue for now, but please do re-open if it's still a problem.