[CONPY-53] Cursor with empty param Created: 2020-04-03  Updated: 2020-04-14  Resolved: 2020-04-14

Status: Closed
Project: MariaDB Connector/Python
Component/s: DBAPI 2.0
Affects Version/s: 0.9.55
Fix Version/s: 0.9.57

Type: New Feature Priority: Major
Reporter: Luciano Barcaro Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

In order to ease the migration to Connector/Python, consider accept empty tuple or empty list as parameter.

db = mariadb.connect(....)
qr = db.cursor()
 
qr.execute("select 1", [])
mariadb.DatabaseError.DataError: Invalid number of parameters



 Comments   
Comment by Georg Richter [ 2020-04-14 ]

fixed in rev. 6e50bfcbe5c485937b152c516ce94e426229ca72

Generated at Thu Feb 08 03:29:53 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.