[CONPY-100] Add binary option for cursor Created: 2020-08-11  Updated: 2020-08-12  Resolved: 2020-08-12

Status: Closed
Project: MariaDB Connector/Python
Component/s: DBAPI 2.0
Affects Version/s: 1.0.0
Fix Version/s: 1.0.1

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


 Description   

In current implementation *execute() *method of a cursor only uses binary protocol if parameters were passed.

This might slowdown fetch operation, epecially when transferring large amount of numbers for server to client.

To force use of binary protcol, it should be possible to force a cursor to use always binary protocol:

cursor= conn.cursor(binary=True)



 Comments   
Comment by Georg Richter [ 2020-08-12 ]

rev. 588bc01cc07dfdc8d35e4db5cf224c818b2300e5

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