[CONPY-47] Cursor should support bool datatype Created: 2020-04-02  Updated: 2020-04-02  Resolved: 2020-04-02

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

Type: Bug Priority: Minor
Reporter: Luciano Barcaro Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

mysql.connector supports bool type in cursor parameter

db = mysql.connector.connect(....)
c = db.cursor()
c.execute('select %s', (True, ))
c.fetchone()

it returns: (1, )

but, MariaDB connector does not support.



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

Thanks for your bug report.

Fixed in rev. 01263584f76a233d6ec81dfcbd9efd48d940a49f

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