[CONPY-9] description implementation Created: 2018-07-24  Updated: 2020-03-29  Resolved: 2020-03-29

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

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


 Description   

some of the description fields are incorrect :

  • display_size : currently return max_length, but for string must return the real display length : max length / collation byte per character
  • precision : must be calculate for decimal according to length and scale : +1 if signed, + 1 if have scale (i.e : 123.45 has a precision of 5 and a scale of 2, and a length of 7)

And ... why this 8th field to return flag, since PEP249 indicate having 7 fields (https://www.python.org/dev/peps/pep-0249/#description) ?


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