Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.1.3
-
None
-
3.10
Description
Python connector in 1.1 does not accept None as valid data (indicating no data at all) for cursor execute method.
1.0 works as expected.
The error occurs on cursors.py in line 268:
if len(data): |
As a suggestion, I would put it before (Avoiding error in lines 268 and 281):
data = data or () # force an empty tuple if None was provided. |