[CONPY-229] None values are not passed to converter Created: 2022-10-19  Updated: 2022-10-19  Resolved: 2022-10-19

Status: Closed
Project: MariaDB Connector/Python
Component/s: Other
Affects Version/s: 1.1.4
Fix Version/s: 1.1.5

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

Python Version: 3.10

 Description   

NULL (None) values are not passed to converter, since they are filtered out in ma_convert_function:

if (!self->connection->converter || value == Py_None)
  return NULL;

Additionally, in fetch functions, the type should be set to MYSQL_TYPE_NULL, if passed data element is NULL.

Thanks to Cole Busby for finding this issue!


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