[CONPY-48] Cursor parameters as list Created: 2020-04-02  Updated: 2020-04-03  Resolved: 2020-04-03

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

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


 Description   

Cursor parameters are allowed to be only tuples.

qr.execute('select ?', [True])
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    qr.execute('select ?', [True])
TypeError: argument 2 must be tuple!

Please consider accept list as well, it makes migration to Connector/Python a lot easier.



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

It also affects cursor.executemany()

Comment by Georg Richter [ 2020-04-03 ]

Fixed in rev. 434a4905396da815ae07c287912b5857b5c0519c

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